ubi_wl_get_fm_peb(9)
π ubi_wl_get_fm_peb(9) π
okay so bestie, welcome to the ubi_wl_get_fm_peb(9) page β this one is lowkey niche but honestly kinda iconic once you get the vibe β¨
β¨ NAME β¨
ubi_wl_get_fm_peb β find a physical erase block with a given maximal number. no cap, that's literally the whole mission π―
πΈ SYNOPSIS πΈ
struct ubi_wl_entry * ubi_wl_get_fm_peb (struct ubi_device *ubi , int anchor );
π ARGUMENTS π
ubiβ the UBI device description object, aka the device we are doing this little operation on π«Άanchorβ this PEB is gonna be used as the anchor PEB by fastmap. she has a job and she is doing it π
π¦ DESCRIPTION π¦
So the way this works: the function returns a physical erase block with a given maximal number, and then it removes it from the wl subsystem. periodt, that's the behavior π
β οΈ bestie, listen: it must be called with wl_lock held! not optional, not a suggestion, not a vibe β an actual requirement ππ
π SEE ALSO π
- Kernel file:
./drivers/mtd/ubi/fastmap-wl.c update_fastmap_work_fn(9)find_anchor_wl_entry(9)return_unused_pool_pebs(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_wl_put_fm_peb(9)ubi_is_erase_work(9)may_reserve_for_fm(9)
mwah π this page came from source/version line ./drivers/mtd/ubi, dated October 2026, and it's literally the ubi_wl_get_fm_peb(9) manual β slay and goodbye ππ¦
π¦ 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