next_peb_for_wl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to the next_peb_for_wl(9) page in the Kernel API Manual πŸ’– this one is short and sweet: it returns next PEB to be used internally by the WL subsystem. that's the whole name, no cap.

✨ SYNOPSIS ✨

here's the exact signature, character for character, because we do not play with code:

struct ubi_wl_entry * next_peb_for_wl (struct ubi_device *ubi , bool need_fill );

yep, it returns a struct ubi_wl_entry *, and it takes a struct ubi_device * plus a bool. iconic.

πŸ’… ARGUMENTS πŸ’…

  • ubi β€” UBI device description object. that's the object you hand over, bestie 🫢
  • need_fill β€” whether to fill wear-leveling pool when no PEBs are found. literally what the bool is for, no guessing ✨

πŸ”₯ SEE ALSO πŸ”₯

the page points at the kernel file ./drivers/mtd/ubi/fastmap-wl.c, and the whole SEE ALSO squad is here β€” every single one, periodt:

okay bye bestie β€” this page is from source/version ./drivers/mtd/ubi, dated October 2026, and it's the next_peb_for_wl(9) manual. mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from