blk_revalidate_disk_zones(9)
β¨ blk_revalidate_disk_zones(9) β¨
okay bestie, welcome to the Kernel API Manual (section 9, obvs) β today we're talking about blk_revalidate_disk_zones, and honestly? she's kind of a big deal in the zoned-disk world π
π NAME π
blk_revalidate_disk_zones β the girl who (re)allocates and initializes zone write plugs. no cap, that's literally her whole thing π«Ά
πΈ SYNOPSIS πΈ
int blk_revalidate_disk_zones (struct gendisk *disk );
π ARGUMENTS π
diskβ the target disk. that's it, that's the whole argument. main character vibes only π
π¦ DESCRIPTION π¦
so listen π« β this is a helper function for low-level device drivers, and her job is to check, (re)allocate, and initialize all the resources used for managing zoned disks. she's the responsible one in the group chat fr fr.
normally, blk-mq based drivers should call her:
- when a zoned gendisk is probed, and
- when the zone configuration of the gendisk changes (e.g. after a format) β¨
β οΈ but babe, read this before you call her: the device driver must already have set the device zone size (the chunk_sector limit) and the max zone append limit before calling this function. like, that's a prerequisite, not a suggestion π
also, BIO based drivers can use this function too β iconic, inclusive, we love to see it π β as long as the device queue can be safely frozen π§. no frozen queue? no entry. periodt.
π SEE ALSO π
check out the kernel file ./block/blk-zoned.c and these besties:
blk_zone_cond_str(9)bdev_zone_is_seq(9)blkdev_report_zones(9)blkdev_zone_mgmt(9)disk_report_zone(9)blkdev_get_zone_info(9)blkdev_report_zones_cached(9)blk_zone_plug_bio(9)blk_zone_issue_zeroout(9)
okay that's the whole page, ily, go call her responsibly π
πΈ signed, sealed, delivered from ./block β October 2026 β blk_revalidate_disk_zones(9) πΈ slay πβ¨
π¦ 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