task_function_call(9)
π task_function_call(9) π
okay bestie, welcome to the Kernel API Manual page for task_function_call(9) β it's the little helper that calls a function on the cpu where a task is running β¨
πΈ NAME πΈ
task_function_call β call a function on the cpu on which a task runs π«Ά
β¨ SYNOPSIS β¨
int task_function_call (struct task_struct *p , remote_function_f func ,
void *info );
π ARGUMENTS π
pβ the task to evaluate πfuncβ the function to be called πinfoβ the function call argument π
π DESCRIPTION π
So like, it calls the function func when the task is currently running. lowkey it might be on the current CPU, and in that case it just calls the function directly β no drama, no extra hop π«
It will retry due to any failures in smp_call_function_single, such as if the task_cpu goes offline concurrently. concurrently is doing a lot of work there, so keep that in mind, bestie.
It returns the func return value or -ESRCH or -ENXIO when the process isn't running. periodt. π
π¦ SEE ALSO π¦
- Kernel file
./kernel/events/core.cπ cpu_function_call(9)πsys_perf_event_open(9)π₯perf_event_create_kernel_counter(9)β
mwah π this page is serving source/version ./kernel/events, dated October 2026, and it's literally the task_function_call(9) manual β ily, go read the kernel now π§ββοΈπ
π¦ 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