lockref_put_return(9)
π NAME π
okay so bestie, welcome to the lockref_put_return(9) page from the Kernel API Manual β¨ β it's literally about decrementing a reference count if possible. no cap. π«Ά
π¦ SYNOPSIS π¦
int lockref_put_return (struct lockref *lockref );
πΈ ARGUMENTS πΈ
lockrefβ pointer tolockrefstructure. that's the vibe: you hand it a pointer to alockrefstructure and it does its thing. π
π₯ DESCRIPTION π₯
so bestie, this function decrements the reference count and returns the new value. literally that. π
plot twist though: if the lockref was dead or locked, it returns -1. π that's the whole rule. no cap.
π SEE ALSO π
- Kernel file
./lib/lockref.c lockref_get(9)lockref_get_not_zero(9)lockref_put_or_lock(9)lockref_mark_dead(9)lockref_get_not_dead(9)
okay bye bestie π
this lil page comes from ./lib, dated October 2026, and it's the lockref_put_return(9) manual page β 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