Karg  v0.2.0
The kernel of CargOS
syscall.c File Reference
#include <syscall.h>

Functions

isize sys_exit (const trapframe_t *frame)
 
isize sys_read (const trapframe_t *frame)
 
isize sys_write (const trapframe_t *frame)
 
isize sys_yield (const trapframe_t *frame)
 
isize sys_sleep (const trapframe_t *frame)
 
isize sys_getpid (const trapframe_t *frame)
 
isize sys_proc (const trapframe_t *frame)
 
isize sys_wait (const trapframe_t *frame)
 
isize sys_reboot (const trapframe_t *frame)
 

Variables

isize(*const SYSCALL_TABLE [])(const trapframe_t *)
 
const usize NR_SYSCALLS = sizeof(SYSCALL_TABLE) / sizeof(SYSCALL_TABLE[0])
 

Function Documentation

◆ sys_exit()

isize sys_exit ( const trapframe_t frame)

◆ sys_getpid()

isize sys_getpid ( const trapframe_t frame)

◆ sys_proc()

isize sys_proc ( const trapframe_t frame)

◆ sys_read()

isize sys_read ( const trapframe_t frame)

◆ sys_reboot()

isize sys_reboot ( const trapframe_t frame)

◆ sys_sleep()

isize sys_sleep ( const trapframe_t frame)

◆ sys_wait()

isize sys_wait ( const trapframe_t frame)

◆ sys_write()

isize sys_write ( const trapframe_t frame)

◆ sys_yield()

isize sys_yield ( const trapframe_t frame)

Variable Documentation

◆ NR_SYSCALLS

const usize NR_SYSCALLS = sizeof(SYSCALL_TABLE) / sizeof(SYSCALL_TABLE[0])

◆ SYSCALL_TABLE

isize(*const SYSCALL_TABLE[])(const trapframe_t *) ( const trapframe_t frame)
Initial value:
= {
}
isize sys_sleep(const trapframe_t *frame)
Definition: sleep.c:9
isize sys_getpid(const trapframe_t *frame)
Definition: getpid.c:5
isize sys_exit(const trapframe_t *frame)
Definition: exit.c:5
isize sys_read(const trapframe_t *frame)
Definition: read.c:6
isize sys_wait(const trapframe_t *frame)
Definition: wait.c:7
isize sys_yield(const trapframe_t *frame)
Definition: yield.c:5
isize sys_reboot(const trapframe_t *frame)
Definition: reboot.c:12
isize sys_proc(const trapframe_t *frame)
Definition: proc.c:7
isize sys_write(const trapframe_t *frame)
Definition: write.c:8