bpf_task_wo...edule_signal(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bpf_task_wo...edule_signal(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual entry for bpf_task_wo...edule_signal(9) (yes the name got truncated by the terminal, no that's not a typo on my end, that's just how it's printed 😭). it's giving very niche, very powerful, very "iykyk" energy. let's get into it πŸŽ€


✨ NAME ✨

bpf_task_work_schedule_signal β€” schedules a BPF callback using task_work_add with TWA_SIGNAL mode πŸ¦‹


🌸 SYNOPSIS 🌸

__bpf_kfunc int bpf_task_work_schedule_signal (struct task_struct *task
, struct bpf_task_work *tw , void *map__const_map ,
bpf_task_work_callback_t callback , struct bpf_prog_aux *aux );

πŸ’– ARGUMENTS πŸ’–

  • task β€” the Task struct for which the callback should be scheduled ✨
  • tw β€” pointer to struct bpf_task_work inside a BPF map value, used for internal bookkeeping 🧚
  • map__const_map β€” the bpf_map that embeds struct bpf_task_work in the values πŸ’«
  • callback β€” pointer to the BPF subprogram to call πŸ”₯
  • aux β€” pointer to the bpf_prog_aux of the caller BPF program, implicitly set by the verifier πŸ‘‘

⭐ RETURN ⭐

0 if task work has been scheduled successfully, negative error code otherwise 🫢


🌈 SEE ALSO 🌈

the whole squad, fr fr β€” kernel file ./kernel/bpf/helpers.c:


ngl bestie, that SEE ALSO list is a whole friend group 😭 do not lose a single one of them, they all matter πŸ’œ

okay that's the whole page, periodt πŸ’… this lil gem lives in ./kernel/bpf and it's dated October 2026 β€” mwah, go schedule some task work, you absolute icon πŸ‘‘βœ¨πŸ«Ά

πŸ“¦ where this page comes from