aac_biosparm(9)
πΎ aac_biosparm(9) β the Kernel API Manual, bestie edition π
okay so picture this: it's a page from the Kernel API Manual, and it's here to spill the tea on aac_biosparm. yes, the name is giving "silent but essential kernel helper energy" and honestly? we're obsessed. π
β¨ NAME β¨
aac_biosparm β returns BIOS parameters for a disk, that's the whole vibe πΈ
π¦ SYNOPSIS π¦
int aac_biosparm (struct scsi_device *sdev , struct gendisk *disk ,
sector_t capacity , int *geom );
literally the whole signature, no cap. four args, one int back. π
π ARGUMENTS π
sdevβ the scsi device that corresponds to the disk. your main character scsi device, fr fr.diskβ thegendiskthat corresponds to the disk. yes bestie, they're both "the disk", that's just how it is. πcapacityβ the sector capacity of the disk. it's asector_t, it's big, it's iconic.geomβ the geometry block to fill in. this one gets written to, so handle with care π«Ά
π₯ DESCRIPTION π₯
so what does it actually do? it returns the Heads/Sectors/Cylinders BIOS Disk Parameters for the Disk. that's the whole assignment. β¨
the default disk geometry is 64 heads, 32 sectors, and the appropriate number of cylinders so as not to exceed drive capacity. cute, classic, reliable. π
now here's where it gets spicy πΆοΈ β for disks equal to or larger than 1 GB to be addressable by the BIOS without exceeding the BIOS limitation of 1024 cylinders, Extended Translation should be enabled. iykyk.
and when Extended Translation is enabled, the geometry glow-up goes like this:
- drives between 1 GB inclusive and 2 GB exclusive are given a disk geometry of 128 heads and 32 sectors π¦
- drives above 2 GB inclusive are given a disk geometry of 255 heads and 63 sectors π
β οΈ okay but listen β if the BIOS detects that the Extended Translation setting does not match the geometry in the partition table, then the translation inferred from the partition table will be used by the BIOS, and a warning may be displayed. so likeβ¦ the tables can turn. drama. π
π SEE ALSO π
kernel file ./drivers/scsi/aacraid/linit.c plus the whole friend group:
aac_queuecommand(9)aac_info(9)aac_get_driver_ident(9)aac_sdev_configure(9)aac_change_queue_depth(9)aac_cfg_open(9)aac_cfg_ioctl(9)
go read them, they're all slay in their own way π
and that's the page!! brought to you by ./drivers/scsi/aacraid (the source, the moment, the icon) β October 2026 edition, from the Kernel API Manual itself. mwah π stay geometric bestie π§ββοΈπ«
π¦ 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