miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
main.c File Reference
#include <unistd.h>
#include <string.h>
#include <stdint.h>
Include dependency graph for main.c:

Macros

#define SYS_futex   202
#define SYS_gettid   186
#define SYS_clone_nr   56
#define FUTEX_WAIT   0
#define FUTEX_WAKE   1
#define FUTEX_PRIVATE   128
#define CLONE_VM   0x00000100
#define CLONE_FS   0x00000200
#define CLONE_SIGHAND   0x00000800
#define CLONE_THREAD   0x00010000
#define CLONE_CHILD_SETTID   0x01000000
#define CLONE_CHILD_CLEARTID   0x00400000

Functions

static long futex (uint32_t *uaddr, int op, uint32_t val)
static long sys_gettid (void)
static void write_str (const char *s)
static void test_futex_wake_nowaiters (void)
static void test_futex_wait_eagain (void)
static void test_futex_wait_wake (void)
static void test_gettid (void)
int main (void)

Macro Definition Documentation

◆ CLONE_CHILD_CLEARTID

#define CLONE_CHILD_CLEARTID   0x00400000

◆ CLONE_CHILD_SETTID

#define CLONE_CHILD_SETTID   0x01000000

◆ CLONE_FS

#define CLONE_FS   0x00000200

◆ CLONE_SIGHAND

#define CLONE_SIGHAND   0x00000800

◆ CLONE_THREAD

#define CLONE_THREAD   0x00010000

◆ CLONE_VM

#define CLONE_VM   0x00000100

◆ FUTEX_PRIVATE

#define FUTEX_PRIVATE   128

◆ FUTEX_WAIT

#define FUTEX_WAIT   0

◆ FUTEX_WAKE

#define FUTEX_WAKE   1

◆ SYS_clone_nr

#define SYS_clone_nr   56

◆ SYS_futex

#define SYS_futex   202

◆ SYS_gettid

#define SYS_gettid   186

Function Documentation

◆ futex()

long futex ( uint32_t * uaddr,
int op,
uint32_t val )
static
Here is the caller graph for this function:

◆ main()

int main ( void )
Here is the call graph for this function:

◆ sys_gettid()

long sys_gettid ( void )
static
Here is the caller graph for this function:

◆ test_futex_wait_eagain()

void test_futex_wait_eagain ( void )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_futex_wait_wake()

void test_futex_wait_wake ( void )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_futex_wake_nowaiters()

void test_futex_wake_nowaiters ( void )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_gettid()

void test_gettid ( void )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_str()

void write_str ( const char * s)
static
Here is the call graph for this function: