futex_wait_multiple(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– futex_wait_multiple(9) πŸ’–

okay so welcome to the Kernel API Manual page for futex_wait_multiple(9) β€” bestie, we are literally about to get into futex group-chat nap mode 🫢✨


πŸŽ€ NAME πŸŽ€

futex_wait_multiple β€” prepare to wait on and enqueue several futexes, periodt πŸ’…


✨ SYNOPSIS ✨

int futex_wait_multiple (struct futex_vector *vs , unsigned int count ,
struct hrtimer_sleeper *to );

🫢 ARGUMENTS 🫢

  • vs β€” the list of futexes to wait on, like the little squad you're keeping an eye on πŸ‘€
  • count β€” the number of objects, fr fr πŸ”’
  • to β€” timeout before giving up and returning to userspace ⏰

πŸ’… DESCRIPTION πŸ’…

Entry point for the FUTEX_WAIT_MULTIPLE futex operation. This function sleeps on a group of futexes and returns on the first futex that is wake, or after the timeout has elapsed.

it's giving "group nap until somebody wakes up or the timer says enough" energy 😭🌸


πŸ‘‘ RETURN πŸ‘‘

  • >=0 β€” hint to the futex that was awoken πŸ‘‘
  • <0 β€” on error πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./kernel/futex/waitwake.c, plus the whole squad: futex_do_wait(9), futex_unqueue_multiple(9), futex_wait_multiple_setup(9), futex_sleep_multiple(9), and futex_wait_setup(9) πŸ¦‹βœ¨


catch u in ./kernel/futex β€” October 2026 edition, page futex_wait_multiple(9) πŸ’–πŸŽ€

πŸ“¦ where this page comes from