ubi_wl_put_peb(9)
π ubi_wl_put_peb(9) β Kernel API Manual glow-up π
πΈ NAME πΈ
ubi_wl_put_peb β return a PEB to the wear-leveling sub-system. π
β¨ SYNOPSIS β¨
int ubi_wl_put_peb (struct ubi_device *ubi , int vol_id , int lnum , int
pnum , int torture );
π ARGUMENTS π
ubiβ UBI device description object π«Άvol_idβ the volume ID that last used this PEB β¨lnumβ the last used logical eraseblock number for the PEB πpnumβ physical eraseblock to return π¦tortureβ if this physical eraseblock has to be tortured π
π¦ DESCRIPTION π¦
okay so ubi_wl_put_peb is literally the βgive this PEB backβ function, bestie π Itβs called to return physical eraseblock pnum to the pool of free physical eraseblocks. The torture flag has to be set if an I/O error occurred to this pnum and it has to be tested β yes, βtorturedβ is the actual word, no cap ππ₯
This function returns zero in case of success, and a negative error code in case of failure. Slay. π
π₯ SEE ALSO π₯
Kernel file ./drivers/mtd/ubi/wl.c is the main-character file for this one π«Ά and the whole lineup is here:
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_scrub_peb(9)ubi_wl_flush(9)ubi_bitflip_check(9)tree_destroy(9)ubi_thread(9)shutdown_work(9)erase_aeb(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)
okay thatβs the whole page, bestie π source/version: ./drivers/mtd/ubi Β· date: October 2026 Β· manual page: ubi_wl_put_peb(9) Β· go return that PEB responsibly π«Άβ¨
π¦ 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