kref_init(9)
π kref_init(9) π
okay so weβre in the Kernel API Manual, and this little icon is kref_init(9). Letβs go, bestie. β¨
β¨ NAME β¨
kref_init β it initializes an object. Thatβs the whole assignment, and it ate. π
π¦ SYNOPSIS π¦
void kref_init (struct kref *kref );
No cap, thatβs the exact signature: it returns void, and it takes a pointer to a struct kref named kref. π
πΈ ARGUMENTS πΈ
krefβ the object in question. Like, the actualstruct krefthatβs getting initialized. Thatβs the one. π«Ά
π SEE ALSO π
- Kernel file
./include/linux/kref.h kref_get(9)kref_put(9)kref_put_mutex(9)kref_put_lock(9)kref_get_unless_zero(9)
Go read those if you want the whole kref cinematic universe, iykyk. π«
mwah π this page is from ./include/linux, dated October 2026, and kref_init(9) is officially signed off. byeee π
π¦ 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