ata_scsi_un...ive_capacity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ata_scsi_unlock_native_capacity β€” Kernel API Manual, bestie edition

okay so first of all, the actual page title is ata_scsi_unlock_native_capacity(9) and it lives in the Kernel API Manual β€” but the header at the top is out here doing the absolute most with truncation and shows it as ata_scsi_un...ive_capacity(9) 😭 like girl, spell it out. anyway. below is the whole thing, no cap, every crumb of it.


✨ NAME ✨

ata_scsi_unlock_native_capacity β€” unlock native capacity πŸŽ€

that's it. that's the name. short, sweet, and it does exactly what it says on the tin.


πŸ¦‹ SYNOPSIS πŸ¦‹

void ata_scsi_unlock_native_capacity (struct scsi_device *sdev );

it returns void, meaning it gives you nothing back β€” it's giving mysterious, it's giving "the real gift was the unlocking we did along the way" πŸ’œ


🌸 ARGUMENTS 🌸

  • sdev β€” the SCSI device to adjust device capacity for. this is your little guy. your project. your main character. you're adjusting its capacity bestie πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the vibe check: this function gets called if a partition on sdev extends beyond the end of the device πŸ‘€ like the partition is out here claiming real estate that the device literally doesn't have. bold. iconic. delusional.

so what does it do about it? it requests EH to unlock HPA. HPA! yes that HPA. it asks EH to go unlock it. that's the whole job fr fr, and honestly someone had to do it 🫢

LOCKING: this is defined by the SCSI layer. and here's the part you gotta hold in your heart β€” it might sleep. 😴 so do NOT call this from somewhere rude where sleeping isn't allowed. that's not me being dramatic, that's just the rules.


🌈 SEE ALSO 🌈

the friend group. the whole crew. everybody in the libata-scsi cinematic universe shows up here πŸ’…

kernel file:

  • ./drivers/ata/libata-scsi.c

and the extended fam:

like I said. the whole crew. iykyk 🧚


πŸ’€ friendly reminder before you go: sdev matters, the partition-beyond-end-of-device case is literally the whole reason this exists, it requests EH to unlock HPA, and the locking is defined by the SCSI layer and might sleep. that's the tea. don't forget it.

okay that's the page!! and for the cute sign-off you asked for: this lil number comes from the source dir ./drivers/ata, dated October 2026, and yes the footer still insists on calling it ata_scsi_un...ive_capacity(9) β€” we love a consistent aesthetic πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from