PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
futex.c File Reference
#include <kernel/cpu/syscall.h>
#include <kernel/log/log.h>
#include <kernel/proc/process.h>
#include <kernel/sched/sched.h>
#include <kernel/sched/clock.h>
#include <kernel/sched/thread.h>
#include <kernel/sched/timer.h>
#include <kernel/sched/wait.h>
#include <kernel/sync/futex.h>
#include <kernel/sync/lock.h>
#include <kernel/utils/map.h>
#include <errno.h>
#include <stdlib.h>
Include dependency graph for futex.c:

Go to the source code of this file.

Functions

void futex_ctx_init (futex_ctx_t *ctx)
 Initialize a per-process futex context.
 
void futex_ctx_deinit (futex_ctx_t *ctx)
 Deinitialize a per-process futex context. *.
 
static futex_tfutex_ctx_get (futex_ctx_t *ctx, void *addr)
 
 SYSCALL_DEFINE (SYS_FUTEX, uint64_t, atomic_uint64_t *addr, uint64_t val, futex_op_t op, clock_t timeout)
 

Function Documentation

◆ futex_ctx_get()

static futex_t * futex_ctx_get ( futex_ctx_t ctx,
void *  addr 
)
static

Definition at line 39 of file futex.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYSCALL_DEFINE()

SYSCALL_DEFINE ( SYS_FUTEX  ,
uint64_t  ,
atomic_uint64_t *  addr,
uint64_t  val,
futex_op_t  op,
clock_t  timeout 
)

Definition at line 62 of file futex.c.

Here is the call graph for this function: