async_schedule_node(9)
β¨ async_schedule_node(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one is literally the NUMA-specific glow-up of async_schedule, and it's giving "i have a favorite CPU and i'm not sorry." let's get into it π¦
πΈ NAME πΈ
async_schedule_node β the NUMA specific version of async_schedule. yes she has a whole node preference, she's main character energy π
β SYNOPSIS β
async_cookie_t async_schedule_node (async_func_t func , void *data , int node );
like, three things in, one cookie out. slay π
π ARGUMENTS π
funcβ the function you want to run asynchronously, aka the actual work. she's the vibe, she's the moment β¨dataβ the data pointer you're passing along to that function. think of it as the little gift bag you hand over π«Άnodeβ the NUMA node you want this scheduled on, or close to. she has a location preference and honestly? same π
π DESCRIPTION π
Returns an async_cookie_t that may be used for checkpointing later. keep that cookie, bestie β it's literally your receipt for checking in on this work afterwards π
π₯ NOTE π₯
This function may be called from atomic or non-atomic contexts. yes, both. she's flexible like that π
The node you requested will be honored on a best effort basis β no cap, it's a request, not a demand π. And if that node has no CPUs associated with it, then the work gets distributed among all available CPUs instead. so like, if your fave venue is closed, the party just moves somewhere else π
π¦ SEE ALSO π¦
- Kernel file
./kernel/async.c async_schedule_node_domain(9)async_schedule_dev_nocall(9)async_synchronize_full(9)async_synchronize_full_domain(9)async_synchronize_cookie_domain(9)async_synchronize_cookie(9)current_is_async(9)
go read the whole friend group, they're all iconic π
ngl this one's short but she ate. cookie in, best-effort node, all-CPU fallback, periodt πβ¨
and that's the whole page, bestie π§ this cutie lives in ./kernel and the date on it is October 2026 β catch you in the next manpage, mwah ππ
π¦ 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