rt_mutex_lock_nested(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rt_mutex_lock_nested(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes we're reading kernel locking docs now, we contain multitudes πŸ¦‹


🌸 NAME 🌸

rt_mutex_lock_nested β€” lock a rt_mutex πŸ”’ (yes literally that's it, it locks the mutex, icon behavior)


✨ SYNOPSIS ✨

void rt_mutex_lock_nested (struct rt_mutex *lock , unsigned int subclass );

that's the whole signature, no cap 🫢 returns void, so like… nothing comes back. it just does the thing.


πŸŽ€ ARGUMENTS πŸŽ€

  • lock β€” the rt_mutex to be locked πŸ‘‘ this is the main character of the operation, the thing getting locked fr fr
  • subclass β€” the lockdep subclass 🧚 that's the little number lockdep uses to tell apart different nesting levels of the same class of lock (iykyk)

πŸ’œ SEE ALSO πŸ’œ

like, go read these too, they're all in the kernel file ./kernel/locking/rtmutex_api.c and they're all giving rtmutex energy 😭:


and that's the whole page bestie, you ate that πŸ“ this lil masterpiece lives in ./kernel/locking, dated October 2026, and it's rt_mutex_lock_nested(9) from the Kernel API Manual β€” mwah, slay, go lock something πŸ’…πŸ”₯

πŸ“¦ where this page comes from