task_curr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 task_curr 🌸

okay so this page is straight out of the Kernel API Manual, and it's here to answer one very specific question, bestie: is this task currently executing on a CPU? let's get into it πŸ’…


πŸ’– NAME πŸ’–

task_curr β€” literally the vibe check for whether a task is currently executing on a CPU ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

int task_curr (const struct task_struct *p );

πŸŽ€ ARGUMENTS πŸŽ€

  • p β€” the task in question, bestie. that's the one you're asking about 🫢

⭐ RETURN ⭐

1 if the task is currently executing. 0 otherwise. no cap, that's the whole return situation 🌈

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the page, bestie 🫢 source/version: ./kernel/sched, dated October 2026 β€” iconic, periodt πŸ’œ

πŸ“¦ where this page comes from