ww_mutex_is_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ww_mutex_is_locked(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one is a lil baby page, it's literally just one question and one answer, and honestly? iconic. it's giving "short and sweet, knows exactly what it is."


🌸 NAME 🌸

ww_mutex_is_locked β€” is the w/w mutex locked πŸ‘€

like, that's it. that's the whole vibe. you're checking if the thing is locked.


πŸ¦‹ SYNOPSIS πŸ¦‹

bool ww_mutex_is_locked (struct ww_mutex *lock );

that's the whole signature, no cap. returns a bool, takes a pointer to a struct ww_mutex named lock, and yes the spacing is exactly like that so copy it character for character, mwah πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • lock β€” the mutex to be queried 🫢 like, this is the actual w/w mutex you're asking the question about. no mutex, no answer, iykyk.

🌈 DESCRIPTION 🌈

okay so here's the whole deal, and it's genuinely so simple it's sending me 😭

Returns 1 if the mutex is locked, 0 if unlocked.

that's it!! that's the function!! it's a vibe check for your w/w mutex. locked? 1. unlocked? 0. no middle ground, no maybe, no "it's complicated" β€” just a clean lil boolean and honestly we love that for us πŸ’œ

heads up bestie: this is a query, not a lock. it just tells you the state, it doesn't do anything to the mutex. read the room, don't touch the vibe πŸ’€

⭐ SEE ALSO ⭐

go read these next, bestie, they're the whole friend group 🧚 the kernel file lives at ./include/linux/ww_mutex.h and here's the squad:

all of them, in that order, no skips πŸ”₯


and that's the page!! slay πŸ’–βœ¨

cute lil sign-off: this one's from the ./include/linux directory, dated October 2026, and it's ww_mutex_is_locked(9) saying bye bestie, go check your locks responsibly πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from