blk_revalidate_disk_zones(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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