scsi_bios_ptable(9)
πΎ scsi_bios_ptable(9) β bestie edition π
ok so this is a page from the Kernel API Manual (yes that's the manual name, she's official π ) and it's literally about yoinking a PC partition table out of the very first sector of a device. tiny function, big main character energy. let's get into it β¨
β¨ NAME β¨
scsi_bios_ptable β Read PC partition table out of first sector of device.
like, she reads the PC partition table. out of the first sector. of the device. that's the whole vibe π«Ά
πΈ SYNOPSIS πΈ
unsigned char * scsi_bios_ptable (struct gendisk *dev );
no cap, that's the whole signature π
π¦ ARGUMENTS π¦
devβ from this device. that's it, that's the argument. she takes the device you hand her and goes to work π
π« DESCRIPTION π«
okay so here's what she actually does: she reads the first sector from the device, then hands you back 0x42 bytes starting at offset 0x1be. periodt. that's the entire personality π
lowkey the0x42and the0x1beare the whole point β like, don't touch them, don't round them, they're iconic and they're staying π₯
π RETURN π
you get the partition table back in kmalloc(GFP_KERNEL) memory π β or NULL on error, in which case π. that's it. that's the return value.
π SEE ALSO π
- Kernel file
./drivers/scsi/scsicam.cβ the source file, go read her π scsi_partsize(9)β her friendscsicam_bios_param(9)β her other friend π«Ά
they're all hanging out together, iykyk π
ok that's the page!! mwah π this lil sign-off is brought to you by the source ./drivers/scsi and dated October 2026 β iconic, no notes, she ate and left zero crumbs π§ββοΈβπΈ
π¦ 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