Barrelfish
Data Structures | Macros
syscalls.h File Reference

System call numbers. More...

Data Structures

struct  sysret
 return type from a system call: two words More...
 

Macros

#define SYSRET(x)   (struct sysret){ /*error*/ x, /*value*/ 0 }
 Macro used for constructing return values from single-value syscalls.
 
#define SYSCALL_INVOKE   0
 Invoke a cap.
 
#define SYSCALL_YIELD   1
 Yield the CPU.
 
#define SYSCALL_LRPC   2
 Fast LRPC.
 
#define SYSCALL_DEBUG   3
 Benchmarking and debug syscalls.
 
#define SYSCALL_REBOOT   4
 Reboot the machine.
 
#define SYSCALL_NOP   5
 No operation.
 
#define SYSCALL_PRINT   6
 Write to console.
 
#define SYSCALL_GETCHAR   7
 Read from console.
 
#define SYSCALL_X86_FPU_TRAP_ON   8
 Turn FPU trap on (x86)
 
#define SYSCALL_X86_RELOAD_LDT   9
 Reload the LDT register (x86_64)
 
#define SYSCALL_SUSPEND   10
 Suspend the CPU.
 
#define SYSCALL_GET_ABS_TIME   11
 Get time elapsed since boot.
 
#define SYSCALL_ARMv7_CACHE_CLEAN   8
 Clean (write back) by VA.
 
#define SYSCALL_ARMv7_CACHE_INVAL   9
 Invalidate (discard) by VA.
 
#define SYSCALL_COUNT   12
 Number of syscalls [0..SYSCALL_COUNT - 1].
 

Detailed Description

System call numbers.