lockref_put_or_lock(9)
π
lockref_put_or_lock(9) β Kernel API Manual π
okay bestie, welcome to the lockref_put_or_lock(9) page from the Kernel API Manual β¨ this one is short but she still has main character energy.
π NAME π
lockref_put_or_lock β decrements count unless count <= 1 before decrement. periodt π
β¨ SYNOPSIS β¨
bool lockref_put_or_lock (struct lockref *lockref );
πΈ ARGUMENTS πΈ
lockrefβ pointer tolockrefstructure. literally just a pointer to the lockref struct, no cap π«Ά
π RETURN π
1 if count updated successfully, or 0 if count <= 1 and lock taken. 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_mark_dead(9)lockref_get_not_dead(9)
cute little sign-off bestie: the footer says source/version ./lib, dated October 2026, and the page is lockref_put_or_lock(9) β mwah π«Άπβ¨
π¦ 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