lockref_get_not_zero(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 is 0 or dead. periodt. πŸ’…

🌸 SYNOPSIS 🌸

bool lockref_get_not_zero (struct lockref *lockref );

πŸŽ€ ARGUMENTS πŸŽ€

  • lockref β€” pointer to a struct lockref structure. that’s the whole arg, bestie. πŸŽ€

⭐ RETURN ⭐

  • 1 β€” if the count updated successfully.
  • 0 β€” if the count was zero.

πŸ¦‹ SEE ALSO πŸ¦‹


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