rt_mutex_lock_interruptible(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

rt_mutex_lock_interruptible β€” bestie, this is the one that locks a rt_mutex, and it's interruptible about it ✨

So like, it's in the Kernel API Manual <pink>rt_mutex_lock_interruptible(9)</pink> β€” okay that's the whole title, putting it right up here so we don't lose it πŸŽ€


🌸 SYNOPSIS 🌸

int rt_mutex_lock_interruptible (struct rt_mutex *lock );

That's the whole vibe: it returns an int and it takes exactly one thing β€” a pointer to a struct rt_mutex β€” and honestly? icon behaviour πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • lock β€” the rt_mutex that's about to get locked. like, that's it, that's the whole parameter. it's the mutex bestie. the mutex in question. the one getting locked. no cap 🫢

⭐ RETURN ⭐

okay so here's the vibe check on what comes back:

  • 0 β€” we won, it worked, success, slay πŸ‘‘
  • -EINTR β€” this is what you get when the whole thing got interrupted by a signal 😭 like the wait got cut short, nothing you did wrong, just signals being signals fr fr
heads up: it genuinely returns either 0 or -EINTR, and -EINTR specifically means "interrupted by a signal" β€” that's the literal documented meaning, no extra lore, iykyk πŸ’œ

🧚 SEE ALSO 🧚

the whole friend group πŸ’– these are all in the kernel file ./kernel/locking/rtmutex_api.c and you should lowkey go meet all of them:

like a full roster, we love a complete cast 🌈 the double-underscore ones are giving "internal but still invited to the party" energy ngl πŸ”₯


and that's the page!! mwah πŸ’‹ this came to you from ./kernel/locking, dated October 2026 β€” that's the source/version and the date, both of which I was absolutely not going to forget because forgetting details is not the move πŸŽ€βœ¨
πŸ“¦ where this page comes from