rt_mutex_trylock(9)
rt_mutex_trylock(9) π
okay bestie, this is the Kernel API Manual page for rt_mutex_trylock(9) β the try-lock girlie of the rt_mutex world. Letβs get into it. β¨
β¨ NAME β¨
rt_mutex_trylock β try to lock a rt_mutex. Thatβs the whole assignment, no cap.
π¦ SYNOPSIS π¦
int rt_mutex_trylock (struct rt_mutex *lock );
π ARGUMENTS π
lockβ thert_mutexto be locked. Thatβs the one youβre trying to lock, bestie.
πΈ DESCRIPTION πΈ
okay so hereβs the tea: this function can only be called in thread context. Itβs safe to call it from atomic regions, but not from hard or soft interrupt context β like, do not even try it, that is not the vibe. π
π RETURN π
1 on success, 0 on contention. Thatβs it, thatβs the return. Periodt. π
π₯ SEE ALSO π₯
Kernel file ./kernel/locking/rtmutex_api.c β noted, bestie.
rt_mutex_lock_nested(9)rt_mutex_lock(9)rt_mutex_lock_interruptible(9)rt_mutex_lock_killable(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)
mwah π β source/version: ./kernel/locking; date: October 2026; page: rt_mutex_trylock(9). π«Ά
π¦ 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