ubi_wl_put_peb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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:


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