scsi_partsize(9)
β¨ 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β thegendiskof 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 gethds,cylinders, andsectorshanded 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 π
falseon failure πtrueon success π
π§ SEE ALSO π§
- The kernel file
./drivers/scsi/scsicam.c scsi_bios_ptable(9)scsicam_bios_param(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms