mutex_lock_io(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


xoxo, your kernel bestie πŸ’– β€” coming at you from ./kernel/locking, dated October 2026. πŸŽ€

πŸ“¦ where this page comes from