async_schedule_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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