__erase_worker(9)
π
__erase_worker β the Kernel API Manual moment, bestie
okay so we're literally in the kernel API manual rn and the star of the show is __erase_worker(9) β the physical eraseblock erase worker function. yes that's a mouthful, no i will not be shortening it, it's iconic. π
β¨ NAME β¨
__erase_worker β physical eraseblock erase worker function. that's it. that's the whole vibe. she erases physical eraseblocks and she does it well. π
πΈ SYNOPSIS πΈ
int __erase_worker (struct ubi_device *ubi , struct ubi_work *wl_wrk );
like, she takes two things and gives you back an int. lowkey simple, highkey important. π
π¦ ARGUMENTS π¦
ubiβ the UBI device description object. this is the whole device's little ID card, her whole personality. πͺͺwl_wrkβ the work object. the actual task she's about to do, the main character of this specific errand. β¨
π DESCRIPTION π
okay so picture this: __erase_worker erases a physical eraseblock. and then β because she's thorough, because she's that girl β she also performs torture testing if needed. torture testing!! not me being dramatic, that's literally what the manpage says. π₯
she also takes care about marking the physical eraseblock bad if needed. so if the block is giving nothing but red flags, she flags it. respectfully. π©
return value tea: returns zero in case of success and a negative error code in case of failure. zero = slay, negative = π. fr fr, no in-between.
π SEE ALSO π
the whole group chat, and yes we're tagging everyone:
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)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)
and where does she live? in the kernel file ./drivers/mtd/ubi/wl.c. go visit her, she'd love that. π«Ά
okay that's the page!! shoutout to ./drivers/mtd/ubi for being the source, October 2026 for the date, and to you for reading all the way down here β ily, go erase something (safely). ππ§ββοΈβ
π¦ 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