closure_init(9)
π closure_init(9) Β· Kernel API Manual π
okay so bestie, welcome to the closure_init(9) page from the Kernel API Manual β yes itβs short, yes itβs iconic, and yes itβs about setting up a closure without losing the plot. π«Ά
πΈ NAME πΈ
closure_init β Initialize a closure, setting the refcount to 1. literally the βnew closure, who dis?β moment. β¨
π SYNOPSIS π
void closure_init (struct closure *cl , struct closure *parent );
π ARGUMENTS π
clβ closure to initialize. this is the one getting the glow-up. πparentβ parent of the new closure.clwill take a refcount on it for its lifetime; may beNULL. so yes, bestie,NULLis allowed β no cap. π
π¦ SEE ALSO π¦
Kernel file ./include/linux/closure.h β thatβs the source file, periodt. The whole linked-friend group:
closure_sync(9)closure_get(9)closure_get_not_zero(9)closure_wake_up(9)continue_at(9)closure_return(9)continue_at_nobarrier(9)closure_return_with_destructor(9)closure_call(9)
ngl this one is short and sweet, but every ref is here β read the friends too, iykyk. π
source/version: ./include/linux Β· date: October 2026 β mwah, bye bestie! ππ«Ά
π¦ 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