scsi_partsize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

scsi_partsize β€” the function that parses cylinders/heads/sectors out of a PC partition table, no cap πŸ’…

Hey bestie! You’ve landed on the scsi_partsize(9) page from the Kernel API Manual, and we are about to get into partition-table geometry. It’s giving iconic kernel internals, honestly. 🫢

🌸 SYNOPSIS 🌸

bool scsi_partsize (struct gendisk *disk , sector_t capacity , int geom[3] );

πŸŽ€ ARGUMENTS πŸŽ€

  • disk β€” the gendisk of the disk you’re parsing. Like, which disk are we doing this to? That one. πŸ’–
  • capacity β€” the size of the disk, in sectors. Sectors, bestie, not vibes.
  • geom β€” the output, in the form [hds, cylinders, sectors]. So you get hds, cylinders, and sectors handed back in one little array. Obsessed. πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

This is the part where it figures out the BIOS mapping/geometry that was used to create the partition table, then drops those results into geom. That’s the whole assignment, and it ate. πŸ”₯

🌈 RETURN 🌈

  • false on failure 😭
  • true on success πŸ‘‘

🧚 SEE ALSO 🧚

Go check those out if you want the rest of the scsicam lore, iykyk. πŸ’œ


xoxo, your kernel bestie πŸ’– β€” this one comes from ./drivers/scsi, dated October 2026, and yes it’s the scsi_partsize(9) page. Periodt. πŸŽ€

πŸ“¦ where this page comes from