lockref_put_or_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to lockref structure. 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 πŸ¦‹


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