sd_unlock_native_capacity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sd_unlock_native_capacity(9) β€” Kernel API Manual bestie edition ✨

okay so this is the Kernel API Manual entry for sd_unlock_native_capacity(9), and we are keeping every single deet, no cap 🫢

πŸ’– NAME πŸ’–

sd_unlock_native_capacity β€” unlock native capacity

✨ SYNOPSIS ✨

void sd_unlock_native_capacity (struct gendisk *disk );

πŸŽ€ ARGUMENTS πŸŽ€

  • disk β€” the struct gendisk to set capacity for πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: the block layer calls this function if it detects that partitions on disk reach beyond the end of the device. πŸ‘€

And if the SCSI host implements the ->unlock_native_capacity method, it’s invoked to give it a chance to adjust the device capacity. slay for giving it a shot πŸ’…

πŸ‘‘ CONTEXT πŸ‘‘

Defined by block layer. Might sleep. 😴

🌈 SEE ALSO 🌈

Kernel file ./drivers/scsi/sd.c, plus these absolutely iconic references:


mwah πŸ’‹ β€” source/version: ./drivers/scsi; date: October 2026. bye bestie 🫢

πŸ“¦ where this page comes from