do_work(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ do_work(9) πŸ¦‹

okay so welcome to the Kernel API Manual, bestie β€” today’s main character is do_work(9), and she is here to do one pending work. πŸ’…

πŸŽ€ NAME πŸŽ€

do_work β€” do one pending work.

✨ SYNOPSIS ✨

int do_work (struct ubi_device *ubi , int *executed );

πŸ’… ARGUMENTS πŸ’…

  • ubi β€” the UBI device description object. That’s the device situation you’re working with, bestie. 🫢
  • executed β€” whether there is one work executed. Literally the β€œdid one work execute?” indicator. πŸ‘‘

🌸 DESCRIPTION 🌸

Okay so here’s the tea: do_work returns zero in case of success and a negative error code in case of failure. No cap. πŸ”₯

If executed is not NULL and there is one work executed, executed is set as 1, otherwise executed is set as 0. That’s the whole vibe check. ✨

🌈 SEE ALSO 🌈

Kernel file ./drivers/mtd/ubi/wl.c β€” and the whole squad is:


and that’s the page, bestie 🫢 source/version: ./drivers/mtd/ubi Β· date: October 2026 Β· page: do_work(9) πŸ’–

πŸ“¦ where this page comes from