disk_report_zone(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… disk_report_zone β€” the Kernel API Manual, section 9, bestie ✨

okay so picture this: you're a block device driver and you need to tell the world about one zone. that's it. that's the whole vibe. this little helper is the main character of this manpage and honestly? she ate. πŸŽ€


🌸 SYNOPSIS 🌸

int disk_report_zone (struct gendisk *disk , struct blk_zone *zone ,
unsigned int idx , struct blk_report_zones_args *args );

literally the whole signature, no cap. four args, one int coming back at you. πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • disk β€” the target disk, aka the whole reason we're here 🫢
  • zone β€” the zone to report, the one being served looks today πŸ‘‘
  • idx β€” the index of the zone in the overall zone report, so everyone knows her spot in the lineup ⭐
  • args β€” report zones callback and data, the little bundle of how and with what πŸ’…

✨ DESCRIPTION ✨

okay so listen. this is a helper function, right? for block device drivers. her whole job is to report one zone of a zone report that was initiated with blkdev_report_zones. one zone! not all of them! she's not doing extra credit, she's doing her one thing gorgeously. 🌈

the zone being reported is specified by zone, and she uses it to update β€” if necessary β€” the zone write plug information for that zone. lowkey important detail: "if necessary" is doing real work in that sentence, don't come for her. πŸ™ˆ

and if args specifies a user callback function? then that callback is executed. periodt. πŸ’€


πŸ”₯ SEE ALSO πŸ”₯


ngl bestie, if you're touching zones you're gonna want the whole friend group above β€” they're all in ./block/blk-zoned.c energy, iykyk. go read them, they're iconic. πŸ’œ

okay that's the page!! source on this one is ./block, dated October 2026, and it lives in the Kernel API Manual as disk_report_zone(9) β€” mwah, love u, go report some zones responsibly πŸ§šπŸŒΈπŸ’–

πŸ“¦ where this page comes from