rt_mutex_lock_nested(9)
π 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β thert_mutexto be locked π this is the main character of the operation, the thing getting locked fr frsubclassβ 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 π:
rt_mutex_lock(9)rt_mutex_lock_interruptible(9)rt_mutex_lock_killable(9)rt_mutex_trylock(9)rt_mutex_unlock(9)__rt_mutex_futex_unlock(9)__rt_mutex_init(9)rt_mutex_init_proxy_locked(9)rt_mutex_proxy_unlock(9)__rt_mutex_start_proxy_lock(9)rt_mutex_start_proxy_lock(9)rt_mutex_wait_proxy_lock(9)rt_mutex_cleanup_proxy_lock(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms