STRUCT UBI_WL_ENTRY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, this is struct ubi_wl_entry from the Kernel API Manual β€” literally the wear-leveling entry πŸ’…. she's a kernel struct, she's iconic, and we're gonna get into it.

πŸ¦‹ SYNOPSIS πŸ¦‹

the whole shape of her, no cap:

struct ubi_wl_entry {
    union {
      struct rb_node rb;
      struct list_head list;
    } u;
    int ec;
    int pnum;
 };

πŸŽ€ MEMBERS πŸŽ€

  • u.rb β€” link in the corresponding (free/used) RB-tree 🌈
  • u.list β€” link in the protection queue 🫢
  • ec β€” erase counter, periodt
  • pnum β€” physical eraseblock number, no cap

πŸ’– DESCRIPTION πŸ’–

so this data structure is used in the WL sub-system β€” yes, that one. each physical eraseblock has a corresponding struct wl_entry object, and that object may be kept in different RB-trees. it's giving multi-tree main character energy 😭. See WL sub-system for details, iykyk.

πŸ’« SEE ALSO πŸ’«


that's the whole page, bestie 🫢 this was the Kernel API Manual, source/version ./drivers/mtd/ubi, dated October 2026, and the page is struct ubi_wl_entry(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from