STRUCT UBI_VOLUME_DESC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ubi_volume_desc(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” yes we're literally in the kernel now, this is our main character era ✨. Today's icon is struct ubi_volume_desc, and honestly? It's the little descriptor you get back when a UBI volume gets opened. That's it, that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

like, here's the shape of it, no cap:

struct ubi_volume_desc {
    struct ubi_volume *vol;
    int mode;
 };

πŸ¦‹ Members πŸ¦‹

  • vol β€” this is the reference to the corresponding volume description object. lowkey the whole point of the struct, she's the main character here πŸ‘‘
  • mode β€” the open mode, and bestie there are exactly four options, memorise them: UBI_READONLY, UBI_READWRITE, UBI_EXCLUSIVE, or UBI_METAONLY πŸ’…

✨ SEE ALSO ✨

the whole friend group, fr fr β€” first up, the kernel file ./drivers/mtd/ubi/ubi.h, then: struct ubi_vid_io_buf(9), struct ubi_wl_entry(9), struct ubi_ltree_entry(9), struct ubi_rename_entry(9), struct ubi_fastmap_layout(9), struct ubi_fm_pool(9), struct ubi_eba_leb_desc(9), struct ubi_volume(9), struct ubi_debug_info(9), struct ubi_device(9), struct ubi_ainf_peb(9), struct ubi_ainf_volume(9), struct ubi_attach_info(9), struct ubi_work(9), ubi_init_vid_buf(9), ubi_free_vid_buf(9), ubi_get_vid_hdr(9), ubi_ro_mode(9), vol_id2idx(9), idx2vol_id(9), ubi_is_fm_vol(9), ubi_find_fm_block(9) 🌈

go read them, bestie, they're all in the same friend group and they ate πŸ’€πŸ”₯

mwah πŸ’‹ that's the page β€” sourced straight from ./drivers/mtd/ubi, dated October 2026, and that's struct ubi_volume_desc(9) signing off πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from