disk_zone_capacity(9)
π disk_zone_capacity(9) π
okay bestie, welcome to the Kernel API Manual β this one's a lil function from the disk_zone_capacity(9) page and it's genuinely so straightforward you're gonna eat π
β¨ NAME β¨
disk_zone_capacity β returns the zone capacity of the zone containing @sector π
πΈ SYNOPSIS πΈ
unsigned int disk_zone_capacity (struct gendisk *disk , sector_t sector );
π¦ ARGUMENTS π¦
diskβ the disk you're working with, your main character π«Άsectorβ the sector number, but likeβ¦ inside the zone you're querying π
β DESCRIPTION β
So here's the tea: it returns the zone capacity of the zone that contains sector β¨ and the iconic part? sector can literally be any sector in the zone β no cap, any of them works, it's not picky π
π SEE ALSO π
- Kernel file
./include/linux/blkdev.h genhd capability flags(9)disk_openers(9)disk_has_partscan(9)bio_needs_zone_write_plugging(9)blk_alloc_disk(9)queue_limits_start_update(9)queue_limits_cancel_update(9)bio_end_io_acct(9)
like, go read the whole friend group, they're all slay π₯
ngl this whole page lives in ./include/linux and it's dated October 2026 β yes she's from the future, we stan a time-traveling queen ππ
that's it, that's the page, mwah π β signed, the disk_zone_capacity(9) girlies π§ββοΈπ
π¦ 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