erase_aeb(9)
π erase_aeb(9) β bestie edition β¨
okay so real talk, this is erase_aeb(9) from the Kernel API Manual, and it's genuinely one of those little functions that keeps the whole UBI wear-leveling situation from spiraling. let me walk you through it π«Ά
πΈ NAME πΈ
erase_aeb β literally erases a PEB that got handed to you via UBI attach info PEB. that's the whole vibe. π
β¨ SYNOPSIS β¨
int erase_aeb (struct ubi_device *ubi , struct ubi_ainf_peb *aeb , bool
sync );
no cap, that's the exact signature, spacing and all π
π¦ ARGUMENTS π¦
ubiβ the UBI device description object. like, the whole device's little profile card πaebβ the UBI attach info PEB. this is the PEB in question, the main character of this function ngl πsyncβ if it'strue, you erase synchronously, like right now, no waiting around. otherwise you schedule it for erasure and let the universe (the work queue) handle it later β³
π₯ SEE ALSO π₯
bestie, the roster is long and honestly kind of iconic. this all lives in the kernel file ./drivers/mtd/ubi/wl.c:
wl_tree_add(9)wl_entry_destroy(9)do_work(9)in_wl_tree(9)in_pq(9)prot_queue_add(9)find_wl_entry(9)find_mean_wl_entry(9)wl_get_wle(9)prot_queue_del(9)ubi_sync_erase(9)serve_prot_queue(9)__schedule_ubi_work(9)schedule_ubi_work(9)schedule_erase(9)do_sync_erase(9)wear_leveling_worker(9)ensure_wear_leveling(9)__erase_worker(9)ubi_wl_put_peb(9)ubi_wl_scrub_peb(9)ubi_wl_flush(9)ubi_bitflip_check(9)tree_destroy(9)ubi_thread(9)shutdown_work(9)ubi_wl_init(9)protection_queue_destroy(9)ubi_wl_close(9)self_check_ec(9)self_check_in_wl_tree(9)self_check_in_pq(9)produce_free_peb(9)ubi_wl_get_peb(9)
ngl if you're deep in the wear-leveling code at 2am, that list is your group chat. go read them, they ate π
and that's the whole page, bestie π it shipped from ./drivers/mtd/ubi, dated October 2026 β that's the source, the version, and the date all in one cute little sign-off. periodt π
π¦ 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