task_function_call(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ¦‹


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