ubi_wl_put_fm_peb(9)
β¨ ubi_wl_put_fm_peb(9) β¨
okay so bestie, we're deep in the kernel today, specifically in the ubi_wl_put_fm_peb man page from the Kernel API Manual β this is the one that returns a PEB used in a fastmap to the wear-leveling sub-system π
. if you need the fuller picture, go peek at ubi_wl_put_peb() too, iykyk.
πΈ SYNOPSIS πΈ
int ubi_wl_put_fm_peb (struct ubi_device *ubi , struct ubi_wl_entry
*fm_e , int lnum , int torture );
that's the whole signature, character for character, no cap π«Ά
π ARGUMENTS π
ubiβ the UBI device description object, literally the main character here πfm_eβ the physical eraseblock to return, she's going home πlnumβ the last used logical eraseblock number for the PEB, keep track bestie πtortureβ if this physical eraseblock has to be tortured π yes that's the real name, and yes it's giving exactly what you think
π¦ SEE ALSO π¦
kernel file ./drivers/mtd/ubi/fastmap-wl.c plus the whole friend group:
update_fastmap_work_fn(9)find_anchor_wl_entry(9)return_unused_pool_pebs(9)ubi_wl_get_fm_peb(9)ubi_refill_pools_and_lock(9)produce_free_peb(9)ubi_wl_get_peb(9)next_peb_for_wl(9)need_wear_leveling(9)ubi_ensure_anchor_pebs(9)ubi_is_erase_work(9)may_reserve_for_fm(9)
ngl this one's a short read, but every detail counts β that PEB does not get returned to wear-leveling unless you say so π
and that's the vibe check, bestie β¨ this page lives in ./drivers/mtd/ubi, dated October 2026, from the Kernel API Manual β periodt, go read the source and slay ππ
π
π¦ 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