erase_aeb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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's true, 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:


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