mutex_lock_io(9)
okay so bestie, welcome to mutex_lock_io(9) from the Kernel API Manual π this one is short, iconic, and lowkey all about making the scheduler notice your wait. periodt.
πΈ NAME πΈ
mutex_lock_io β Acquire the mutex and mark the process as waiting for I/O π
β¨ SYNOPSIS β¨
void mutex_lock_io (struct mutex *lock );
π¦ ARGUMENTS π¦
lockβ the mutex to be acquired, bestie. that's the whole assignment π
π DESCRIPTION π
Lock the mutex like mutex_lock. simple as that.
While the task is waiting for this mutex, it will be accounted as being in the IO wait state by the scheduler. so yeah, the scheduler gets the memo that you're waiting on I/O β no cap β¨
π CONTEXT π
Process context. that's the vibe check for where you can call it π«Ά
π₯ SEE ALSO π₯
Kernel file ./kernel/locking/mutex.c, plus these related icons:
mutex_lock(9)mutex_unlock(9)ww_mutex_unlock(9)ww_mutex_trylock(9)mutex_lock_interruptible(9)mutex_lock_killable(9)mutex_trylock(9)atomic_dec_and_mutex_lock(9)
xoxo, your kernel bestie π β coming at you from ./kernel/locking, dated October 2026. π
π¦ 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