#include <stdbool.h>
#include <stdint.h>
#include <sys/syscall.h>
#include <syscall.h>
Go to the source code of this file.
|
uint64_t | syscall (int num,...) |
|
uint64_t | OSTime () |
|
void | OSExit (int status) |
|
uint64_t | OSGetPID () |
|
uint64_t | OSSpawn (const char *path, const char *argv[]) |
|
uint64_t | OSWait (uint64_t pid) |
|
void * | OSMemMap (void *addr, uint64_t len, int flags) |
|
int | OSMemUnmap (void *addr, uint64_t len) |
|
int | OSMemProtect (void *addr, uint64_t len, int flags) |
|
int | OSRead (uint64_t fd, void *addr, uint64_t off, uint64_t length) |
|
int | OSWrite (uint64_t fd, const void *addr, uint64_t off, uint64_t length) |
|
int | OSFlush (uint64_t fd) |
|
uint64_t | OSOpen (const char *path, uint64_t flags) |
|
int | OSClose (uint64_t fd) |
|
int | OSStat (const char *path, struct stat *sb) |
|
int | OSReadDir (uint64_t fd, char *buf, size_t length, uint64_t *offset) |
|
int | OSPipe (uint64_t fd[2]) |
|
int | OSThreadCreate (uint64_t rip, uint64_t arg) |
|
int | OSGetTID () |
|
int | OSThreadExit (uint64_t status) |
|
int | OSThreadSleep (uint64_t time) |
|
int | OSThreadWait (uint64_t tid) |
|
int | OSNICStat (uint64_t nicNo, NIC *nic) |
|
int | OSNICSend (uint64_t nicNo, MBuf *mbuf) |
|
int | OSNICRecv (uint64_t nicNo, MBuf *mbuf) |
|
int | OSSysCtl (const char *node, void *oldvar, void *newvar) |
|
int | OSFSMount (const char *mntpt, const char *device, uint64_t flags) |
|
int | OSFSUnmount (const char *mntpt) |
|
int | OSFSInfo (struct statfs *info, uint64_t max) |
|
◆ OSClose()
Definition at line 83 of file syscall.c.
84{
86}
uint64_t syscall(int num,...)
◆ OSExit()
void OSExit |
( |
int |
status | ) |
|
◆ OSFlush()
◆ OSFSInfo()
◆ OSFSMount()
int OSFSMount |
( |
const char * |
mntpt, |
|
|
const char * |
device, |
|
|
uint64_t |
flags |
|
) |
| |
◆ OSFSUnmount()
int OSFSUnmount |
( |
const char * |
mntpt | ) |
|
Definition at line 167 of file syscall.c.
168{
170}
#define SYSCALL_FSUNMOUNT
◆ OSGetPID()
◆ OSGetTID()
◆ OSMemMap()
void * OSMemMap |
( |
void * |
addr, |
|
|
uint64_t |
len, |
|
|
int |
flags |
|
) |
| |
◆ OSMemProtect()
int OSMemProtect |
( |
void * |
addr, |
|
|
uint64_t |
len, |
|
|
int |
flags |
|
) |
| |
◆ OSMemUnmap()
int OSMemUnmap |
( |
void * |
addr, |
|
|
uint64_t |
len |
|
) |
| |
◆ OSNICRecv()
◆ OSNICSend()
◆ OSNICStat()
◆ OSOpen()
◆ OSPipe()
◆ OSRead()
◆ OSReadDir()
◆ OSSpawn()
uint64_t OSSpawn |
( |
const char * |
path, |
|
|
const char * |
argv[] |
|
) |
| |
◆ OSStat()
int OSStat |
( |
const char * |
path, |
|
|
struct stat * |
sb |
|
) |
| |
◆ OSSysCtl()
int OSSysCtl |
( |
const char * |
node, |
|
|
void * |
oldvar, |
|
|
void * |
newvar |
|
) |
| |
◆ OSThreadCreate()
Definition at line 107 of file syscall.c.
108{
110}
#define SYSCALL_THREADCREATE
◆ OSThreadExit()
Definition at line 119 of file syscall.c.
120{
122}
#define SYSCALL_THREADEXIT
◆ OSThreadSleep()
Definition at line 125 of file syscall.c.
126{
128}
#define SYSCALL_THREADSLEEP
◆ OSThreadWait()
Definition at line 131 of file syscall.c.
132{
134}
#define SYSCALL_THREADWAIT
◆ OSTime()
◆ OSWait()
◆ OSWrite()
◆ syscall()