current_is_async(9)
β¨ current_is_async(9) β¨
okay so bestie, welcome to the kernel API manual π this one's a lil function called current_is_async, and honestly? it's giving "small but mighty." let's get into it π«Ά
πΈ NAME πΈ
current_is_async β is %current an async worker task?
like, that's the whole question. that's the vibe check. π
π¦ SYNOPSIS π¦
bool current_is_async (void );
yep. that's it. she's a bool, she takes nothing, she returns the truth. iconic behavior ngl π
π ARGUMENTS π
voidβ no arguments. zero. none. she needs nothing from you, she already knows. π
π DESCRIPTION π
Returns true if current is an async worker task.
that's literally the entire bit, and honestly that's all she needs to be. you call her, she checks whether the thing running right now (that's current, iykyk) is an async worker task, and she tells you true if it is. no cap, no extra steps, no dramatic monologue. just facts. β¨
lowkey the move here is: you don't guess, you don't assume, you just ask current_is_async and let her handle it π
π§ SEE ALSO π§
the whole async fam, all sitting together at the lunch table π:
- Kernel file
./kernel/async.c async_schedule_node_domain(9)async_schedule_node(9)async_schedule_dev_nocall(9)async_synchronize_full(9)async_synchronize_full_domain(9)async_synchronize_cookie_domain(9)async_synchronize_cookie(9)
like, go read those too, they're the main characters of this whole async saga π
and that's the page, bestie!! πβ¨ this lil gem lives in ./kernel, and the manual's giving October 2026 energy, part of the current_is_async(9) fam in the Kernel API Manual. go off, you got this π
ππ¦
π¦ 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