miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
miniOS_compat.c File Reference
#include <errno.h>
#include <sched.h>
#include <sys/sysinfo.h>
Include dependency graph for miniOS_compat.c:

Functions

static long _syscall3 (long nr, long a, long b, long c)
int mount (const char *source, const char *target, const char *fstype, unsigned long flags, const void *data)
int umount (const char *target)
int umount2 (const char *target, int flags)
long ptrace (long request, int pid, void *addr, void *data)
int sched_getaffinity (pid_t pid, size_t cpusetsize, cpu_set_t *mask)
int sched_setaffinity (pid_t pid, size_t cpusetsize, const cpu_set_t *mask)
int sysinfo (struct sysinfo *info)
int prctl (int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)

Function Documentation

◆ _syscall3()

long _syscall3 ( long nr,
long a,
long b,
long c )
static
Here is the caller graph for this function:

◆ mount()

int mount ( const char * source,
const char * target,
const char * fstype,
unsigned long flags,
const void * data )
Here is the caller graph for this function:

◆ prctl()

int prctl ( int option,
unsigned long arg2,
unsigned long arg3,
unsigned long arg4,
unsigned long arg5 )

◆ ptrace()

long ptrace ( long request,
int pid,
void * addr,
void * data )
Here is the caller graph for this function:

◆ sched_getaffinity()

int sched_getaffinity ( pid_t pid,
size_t cpusetsize,
cpu_set_t * mask )

◆ sched_setaffinity()

int sched_setaffinity ( pid_t pid,
size_t cpusetsize,
const cpu_set_t * mask )

◆ sysinfo()

int sysinfo ( struct sysinfo * info)
Here is the call graph for this function:

◆ umount()

int umount ( const char * target)
Here is the call graph for this function:

◆ umount2()

int umount2 ( const char * target,
int flags )
Here is the call graph for this function: