disk_report_zone(9)
π
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 π₯
- Kernel file
./block/blk-zoned.c blk_zone_cond_str(9)bdev_zone_is_seq(9)blkdev_report_zones(9)blkdev_zone_mgmt(9)blkdev_get_zone_info(9)blkdev_report_zones_cached(9)blk_zone_plug_bio(9)blk_revalidate_disk_zones(9)blk_zone_issue_zeroout(9)
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
- 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