disk_zone_capacity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈

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