self_check_in_pq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

self_check_in_pq(9) πŸ’–

okay so this is a Kernel API Manual page, and the main character is self_check_in_pq β€” the little function that checks if a wear-leveling entry is in the protection queue. no cap, that's the whole plot. 🫢

✨ NAME ✨

self_check_in_pq β€” check if wear-leveling entry is in the protection queue. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

int self_check_in_pq (const struct ubi_device *ubi , struct ubi_wl_entry
*e );

πŸ’… ARGUMENTS πŸ’…

  • ubi β€” the UBI device description object, bestie. it's giving "the device info we need." πŸŽ€
  • e β€” the wear-leveling entry to check. literally the entry in question. πŸ‘€

πŸ”₯ DESCRIPTION πŸ”₯

so here's the vibe check: this function returns 0 if e is in ubi->pq, and it returns -EINVAL if it is not in there. periodt. that's the whole return situation. no extra lore, no side quests. 😭

πŸ‘€ SEE ALSO πŸ‘€

if you wanna read the source, it's the Kernel file ./drivers/mtd/ubi/wl.c. and the whole squad 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_put_peb(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), produce_free_peb(9), ubi_wl_get_peb(9). iykyk. πŸ’œ

made with πŸ’– from the ./drivers/mtd/ubi corner of the kernel, dated October 2026 β€” bye bestie 🫢

πŸ“¦ where this page comes from