STRUCT UBI_EBA_LEB_DESC(9)
π struct ubi_eba_leb_desc β EBA logical eraseblock descriptor π
okay so bestie, we're in the Kernel API Manual rn and this page is literally all about struct ubi_eba_leb_desc. it's short, it's sweet, it's giving "small but crucial supporting character" energy π
β¨ NAME β¨
struct ubi_eba_leb_desc β the EBA logical eraseblock descriptor, no cap π
π¦ SYNOPSIS π¦
here's the whole struct, look at her:
struct ubi_eba_leb_desc {
int lnum;
int pnum;
};
that's it. two little ints and she's done. iconic minimalism honestly π«Ά
πΈ Members πΈ
lnumβ the logical eraseblock number. that's the LEB's logical identity, her government name if you will πpnumβ the physical eraseblock where the LEB can actually be found. like, where she really lives π β¨
π₯ Description π₯
so the whole reason this struct exists? it's here to hide EBA's internals from other parts of the UBI implementation. yes ma'am, encapsulation slay πβ¨ she's a privacy screen for the messy details, and honestly? we respect it.
and if you ever wanna know where a LEB is at, you just call ubi_eba_get_ldesc and she'll tell you the tea π΅π
ngl this is the kind of struct that looks like nothing but is lowkey holding the whole vibe together.
π SEE ALSO π
before you go, here's the whole friend group β the kernel file ./drivers/mtd/ubi/ubi.h and all these lovelies:
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_volume(9)struct ubi_volume_desc(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)
like, go read them, they're all part of the same era fr fr πβ
aaaand that's the whole page bestie π this gem lives in ./drivers/mtd/ubi, dated October 2026 β mwah, go forth and query your LEBs responsibly ππ§
π¦ 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