ENUM BLK_ZONE_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– enum blk_zone_type(9) πŸ’–

okay bestie, so this is a page from the Linux Kernel API Manual β€” like, straight out of the kernel docs β€” and it's about enum blk_zone_type. Yes, the whole page is literally just one enum, and honestly? She's small but she's doing a lot. ✨


🌸 NAME 🌸

enum blk_zone_type β€” the types of zones that are allowed in a zoned device πŸŽ€

✨ SYNOPSIS ✨

enum blk_zone_type {
    BLK_ZONE_TYPE_CONVENTIONAL ,
    BLK_ZONE_TYPE_SEQWRITE_REQ ,
    BLK_ZONE_TYPE_SEQWRITE_PREF

};

πŸ¦‹ Constants πŸ¦‹

  • BLK_ZONE_TYPE_CONVENTIONAL β€” this zone has, like, no write pointer at all, and you can write to it randomly wherever you want, no rules πŸ’…. Also, a zone reset does nothing to it β€” zero effect, no cap.
  • BLK_ZONE_TYPE_SEQWRITE_REQ β€” this zone must be written sequentially, fr fr. No jumping around. πŸ™ˆ
  • BLK_ZONE_TYPE_SEQWRITE_PREF β€” this zone can be written non-sequentially. It's a preference, not a requirement β€” she's flexible like that 🧚

⭐ Description ⭐

And here's the important bit, bestie: any other value that's not defined up there is reserved and must be considered invalid. So like, don't be out here making up your own zone types, okay? 😭 The kernel will not be amused. πŸ’€

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./include/uapi/linux/blkzoned.h πŸ‘‘ β€” that's where these live!
  • enum blk_zone_cond(9)
  • enum blk_zone_report_flags(9)
  • struct blk_zone(9)
  • struct blk_zone_report(9)
  • struct blk_zone_range(9)

and that's the whole page, babes 🫢 this one came from ./include/uapi/linux, dated October 2026, and it's filed under enum blk_zone_type(9) β€” iconic, honestly πŸ’…βœ¨

πŸ“¦ where this page comes from