nfp_cpp_mutex_trylock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nfp_cpp_mutex_trylock πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this little cutie is nfp_cpp_mutex_trylock, and yes the name is a mouthful but we move 🫢


🌸 NAME 🌸

nfp_cpp_mutex_trylock β€” attempt to lock a mutex handle πŸ’–

like, it tries. it does not wait around. main character energy fr fr πŸ‘‘


✨ SYNOPSIS ✨

int nfp_cpp_mutex_trylock (struct nfp_cpp_mutex *mutex );

that's it, that's the whole vibe πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mutex β€” the NFP CPP Mutex handle πŸ’… this is the thing you're trying to lock, bestie

⭐ RETURN ⭐

  • 0 if the lock succeeded πŸŽ‰ slay, you got it
  • -errno on failure 😭 nope, try again later

🌈 SEE ALSO 🌈

the whole mutex friend group honestly, they're all iconic πŸ‘‘βœ¨


lowkey reminder: this is the try version, so don't expect it to sit there waiting for you like nfp_cpp_mutex_lock(9) does πŸ’€ check that 0 and move on

okay that's the whole page!! mwah πŸ’‹ this cutie lives at ./drivers/net/ethernet/netrono... and we're stamped October 2026, so if you're reading this from the future β€” hi bestie, hope your mutex locked πŸ¦‹πŸŒΈπŸ’œ

πŸ“¦ where this page comes from