serve_prot_queue(9)
π NAME π
okay so bestie, this is serve_prot_queue(9) from the Kernel API Manual, and the name tea is literally: serve_prot_queue β check if it is time to stop protecting PEBs. periodt. π«Ά
β¨ SYNOPSIS β¨
the signature is giving:
void serve_prot_queue (struct ubi_device *ubi );
π ARGUMENTS π
ubiβ UBI device description object. that's the one argument, bestie. π
π¦ DESCRIPTION π¦
okay so the vibe check: this function is called after each erase operation, and it removes PEBs from the tail of the protection queue. those PEBs have been protected for long enough, and they should be moved to the used tree. literally the whole glow-up: tail of the protection queue β used tree. no cap. π₯
π SEE ALSO π
the Kernel file is ./drivers/mtd/ubi/wl.c, and the whole linked bestie squad is right here β every single one, in order, no skips:
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)__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)self_check_in_pq(9)produce_free_peb(9)ubi_wl_get_peb(9)
kisses and stay protected, bestie β this pageβs source is./drivers/mtd/ubi, datedOctober 2026, and the page isserve_prot_queue(9)ππ
π¦ 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