The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
futex.h File Reference
#include "common/stdint.h"

Go to the source code of this file.

Functions

void futex_init (void)
 set up the queues.
int futex_wake (struct user_space *space, uintptr_t uaddr, int count)
 wake threads that sleep on a futex.

Function Documentation

◆ futex_init()

void futex_init ( void )

set up the queues.

call once at boot, before the first futex call.

◆ futex_wake()

int futex_wake ( struct user_space * space,
uintptr_t uaddr,
int count )

wake threads that sleep on a futex.

Parameters
spacethe address space of the futex.
uaddrits user address.
countthe most threads to wake.
Returns
the number of threads woken.