add_aeb(9)
π add_aeb(9) β the Kernel API Manual, bestie edition
okay so this is a page from the Kernel API Manual, and today's main character is add_aeb β it makes a brand-new attach erase block and yeets it onto a list you pick. periodt. π
β¨ NAME β¨
add_aeb β create an attach erase block and add it to a list you already have. iconic behaviour, no notes. π
πΈ SYNOPSIS πΈ
int add_aeb (struct ubi_attach_info *ai , struct list_head *list , int
pnum , int ec , int scrub );
that's the whole signature, copy-paste friendly, don't touch the spacing bestie it's literally verbatim π«Ά
π¦ ARGUMENTS π¦
aiβ the UBI attach info object. it's giving "the big context vibes", everything hangs off this.listβ the target list. this is where your new attach erase block is gonna live. π‘pnumβ PEB number of the new attach erase block. yes, pnum = PEB number, we love an abbreviation.ecβ the erease counter of the new LEB. (spelled exactly like that in the original, and honestly? slay, keep it.) β¨scrubβ scrub this PEB after attaching. set it and the PEB gets scrubbed once it's attached. π§Ό
π₯ DESCRIPTION π₯
Returns 0 on success. Anything < 0 means an internal error β so if you see a negative number come back, that's a π moment, not a vibe. π
π SEE ALSO π
the whole friend group, all from the kernel file ./drivers/mtd/ubi/fastmap.c:
init_seen(9), free_seen(9), set_seen(9), self_check_seen(9), ubi_calc_fm_size(9), new_fm_vbuf(9), add_vol(9), assign_aeb_to_av(9), update_vol(9), process_pool_aeb(9), unmap_peb(9), scan_pool(9), count_fastmap_pebs(9), ubi_attach_fastmap(9), find_fm_anchor(9), ubi_scan_fastmap(9), ubi_write_fastmap(9), invalidate_fastmap(9), return_fm_pebs(9), ubi_update_fastmap(9)
go read them, iykyk ππ
ngl this one's short but she ate β everything you need, nothing you don't. π
so yeah, that's the page, mwah π β it lives in ./drivers/mtd/ubi, the source/version line says October 2026, and the footer still calls it add_aeb(9) like the legend it is. π§β
π¦ 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