sd_unlock_native_capacity(9)
π
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β thestruct gendiskto 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:
sd_group_number(9)sd_open(9)sd_release(9)sd_ioctl(9)sd_check_events(9)sd_eh_reset(9)sd_eh_action(9)sd_done(9)sd_read_block_provisioning(9)sd_read_cpr(9)sd_revalidate_disk(9)sd_format_disk_name(9)sd_probe(9)sd_remove(9)init_sd(9)exit_sd(9)
mwah π β source/version: ./drivers/scsi; date: October 2026. bye 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