schedule_work(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, welcome to schedule_work(9) from the Kernel API Manual β€” it's giving put work task in per-CPU workqueue, and that's literally the whole vibe. This is the little function that puts your work task in the system per-CPU workqueue. πŸ’–


✨ SYNOPSIS ✨

here's the signature, copy it exactly, no cap:

bool schedule_work (struct work_struct *work );

πŸŽ€ ARGUMENTS πŸŽ€

  • work β€” job to be done. literally the work item, bestie. 🫢

πŸ’… DESCRIPTION πŸ’…

So here's the tea: it returns false if work was already on the system per-CPU workqueue, and true otherwise. πŸ‘‘

It puts a job in the system per-CPU workqueue if it was not already queued, and leaves it in the same position on the system per-CPU workqueue otherwise. no reshuffling, no drama. πŸ’…

It shares the same memory-ordering properties of queue_work, cf. the DocBook header of queue_work. that part is important, iykyk. ✨


πŸ¦‹ SEE ALSO πŸ¦‹

go read these too, bestie:


πŸŽ€ signed off from the ./include/linux source, dated October 2026, page schedule_work(9) β€” bye bestie, slay your workqueue πŸ’œ

πŸ“¦ where this page comes from