closure_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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. cl will take a refcount on it for its lifetime; may be NULL. so yes, bestie, NULL is allowed β€” no cap. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/closure.h β€” that’s the source file, periodt. The whole linked-friend group:


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