scsicam_bios_param(9)
β¨ NAME β¨
okay so bestie, welcome to the scsicam_bios_param(9) page from the Kernel API Manual π the official NAME moment is scsicam_bios_param β Determine geometry of a disk in cylinders/heads/sectors. that's the whole assignment, and it ate. β¨
π οΈ SYNOPSIS π οΈ
int scsicam_bios_param (struct gendisk *disk , sector_t capacity , int *ip );
πΈ ARGUMENTS πΈ
diskβ which device, bestie. like, which disk are we even talking about? πcapacityβ size of the disk in sectors. yes, sectors, not vibes. πipβ return value:ip[0]=heads,ip[1]=sectors,ip[2]=cylinders. she's storing the whole geometry glow-up right there. β¨
π¦ DESCRIPTION π¦
so what it actually does: determine the BIOS mapping/geometry used for a drive in a SCSI-CAM system, storing the results in ip as required by the HDIO_GETGEO ioctl. that's the assignment, and it understood the brief π₯ no cap, ip is where the heads/sectors/cylinders info lands.
π RETURN π
-1on failure π0on success ππ
π SEE ALSO π
- Kernel file
./drivers/scsi/scsicam.c, plusscsi_bios_ptable(9)andscsi_partsize(9)β go read those too, bestie ππ«Ά
mwah π shoutout to source/version ./drivers/scsi and the October 2026 date β 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