lockref_get_not_zero(9)
π lockref_get_not_zero(9) π
okay so bestie, welcome to the Kernel API Manual page for lockref_get_not_zero(9) β yes, that whole name is the vibe. The TL;DR: bump the count only when itβs not 0 and not dead. Letβs go. π«Ά
β¨ NAME β¨
lockref_get_not_zeroβ increments the count unless the count is0or dead. periodt. π
πΈ SYNOPSIS πΈ
bool lockref_get_not_zero (struct lockref *lockref );
π ARGUMENTS π
lockrefβ pointer to astruct lockrefstructure. thatβs the whole arg, bestie. π
β RETURN β
1β if the count updated successfully.0β if the count was zero.
π¦ SEE ALSO π¦
- Kernel file
./lib/lockref.c lockref_get(9)lockref_put_return(9)lockref_put_or_lock(9)lockref_mark_dead(9)lockref_get_not_dead(9)
lowkey reminder: the whole point is the not zero part β if the count is 0 or dead, this function is not giving you a success update. π
made with π from source/version ./lib, dated October 2026, for page lockref_get_not_zero(9) β 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