add_aeb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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