lockref_get_not_dead(9)
π
lockref_get_not_dead(9) β Kernel API Manual energy β¨
okay bestie, this one is from the Kernel API Manual, and it's literally about checking whether a lockref is dead before bumping its count. Iconic little safety vibe. π
πΈ NAME πΈ
lockref_get_not_dead β increments count unless the ref is dead πβ‘οΈπ
β¨ SYNOPSIS β¨
bool lockref_get_not_dead (struct lockref *lockref );
π ARGUMENTS π
lockrefβ pointer tolockrefstructure π«Ά
π₯ RETURN π₯
Returns 1 if count updated successfully, or 0 if lockref was dead. no cap, that's the whole vibe check π₯
π SEE ALSO π
- Kernel file
./lib/lockref.c lockref_get(9)lockref_get_not_zero(9)lockref_put_return(9)lockref_put_or_lock(9)lockref_mark_dead(9)
mwah π source/version is ./lib, date is October 2026, and the page is lockref_get_not_dead(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