closure_call(9)
π« closure_call(9) β Kernel API Manual, section 9, bestie π«
okay so this is closure_call(9) from the Kernel API Manual and honestly? it's giving "spawn a whole new closure and let it cook" β¨
πΈ NAME πΈ
closure_call β execute @fn out of a new, uninitialized closure π«Ά
β¨ SYNOPSIS β¨
void closure_call (struct closure *cl , closure_fn fn , struct
workqueue_struct *wq , struct closure *parent );
like, copy that exactly, don't @ me π
π ARGUMENTS π
clβ -- undescribed -- π (yes bestie, the manpage really does just leave it blank, I'm not hiding anything from you fr fr)fnβ -- undescribed -- πwqβ -- undescribed -- πparentβ -- undescribed -- π¦
no cap, all four of these are literally listed as -- undescribed -- in the source page. iconic of them to leave us hanging, but that's the lore and I'm not inventing backstory π
π₯ DESCRIPTION π₯
Typically used when running out of one closure, and we want to run fn asynchronously out of a new closure β parent will then wait for cl to finish β
so like: you're already inside a closure, you want fn to go do its thing asynchronously in a shiny new closure, and then parent parks itself and waits for cl to wrap up. main character energy, honestly π
π¦ SEE ALSO π¦
Kernel file ./include/linux/closure.h β go read the header, it's the whole vibe iykyk π
closure_sync(9)closure_get(9)closure_get_not_zero(9)closure_init(9)closure_wake_up(9)continue_at(9)closure_return(9)continue_at_nobarrier(9)closure_return_with_destructor(9)
and that's the whole page bestie, slay π this one lives in ./include/linux, dated October 2026, and it's closure_call(9) β periodt πβ¨
π¦ 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