bpf_task_wo...edule_signal(9)
π 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β theTaskstruct for which the callback should be scheduled β¨twβ pointer tostruct bpf_task_workinside a BPF map value, used for internal bookkeeping π§map__const_mapβ thebpf_mapthat embedsstruct bpf_task_workin the values π«callbackβ pointer to the BPF subprogram to call π₯auxβ pointer to thebpf_prog_auxof 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:
bpf_obj_new(9),bpf_percpu_obj_new(9),bpf_obj_drop(9),bpf_percpu_obj_drop(9),bpf_refcount_acquire(9),bpf_list_push_front(9),bpf_list_push_back(9),bpf_rbtree_add(9),bpf_task_acquire(9),bpf_task_release(9),bpf_cgroup_acquire(9),bpf_cgroup_release(9),bpf_cgroup_ancestor(9),bpf_cgroup_from_id(9),bpf_task_under_cgroup(9),bpf_task_get_cgroup1(9),bpf_task_from_pid(9),bpf_task_from_vpid(9),bpf_dynptr_slice(9),bpf_dynptr_slice_rdwr(9),bpf_dynptr_copy(9),bpf_dynptr_memset(9),bpf_iter_bits_new(9),bpf_iter_bits_next(9),bpf_iter_bits_destroy(9),bpf_copy_from_user_str(9),bpf_copy_from_user_task_str(9),bpf_strcmp(9),bpf_strcasecmp(9),bpf_strnchr(9),bpf_strchr(9),bpf_strchrnul(9),bpf_strrchr(9),bpf_strnlen(9),bpf_strlen(9),bpf_strspn(9),bpf_strcspn(9),bpf_strstr(9),bpf_strcasestr(9),bpf_strnstr(9),bpf_strncasestr(9),bpf_lookup_user_key(9),bpf_lookup_system_key(9),bpf_key_put(9),bpf_verify_pkcs7_signature(9),bpf_task_work_schedule_resume(9),bpf_timer_cancel_async(9)πΈ
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
- 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