miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
syscall_internal.h File Reference
Include dependency graph for syscall_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SYSCALL_DISPATCH_UNHANDLED   ((int64_t)0x7fffffffffffffffLL)

Functions

static int syscall_has_pending_signal (void)
int64_t syscall_dispatch (uint64_t nr, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4, uint64_t arg5, uint64_t arg6)
int64_t syscall_dispatch_mm (uint64_t nr, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4, uint64_t arg5, uint64_t arg6)
int64_t syscall_dispatch_fs (uint64_t nr, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4, uint64_t arg5, uint64_t arg6)
int64_t syscall_dispatch_proc (uint64_t nr, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4, uint64_t arg5, uint64_t arg6)
int64_t syscall_dispatch_net (uint64_t nr, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4, uint64_t arg5, uint64_t arg6)

Macro Definition Documentation

◆ SYSCALL_DISPATCH_UNHANDLED

#define SYSCALL_DISPATCH_UNHANDLED   ((int64_t)0x7fffffffffffffffLL)

Function Documentation

◆ syscall_dispatch()

int64_t syscall_dispatch ( uint64_t nr,
uint64_t arg1,
uint64_t arg2,
uint64_t arg3,
uint64_t arg4,
uint64_t arg5,
uint64_t arg6 )

syscall_dispatch() - Dispatch a syscall number to grouped subsystem handlers.

src/kernel/syscall.c owns the stable public entrypoints and delegates the large implementation bodies to subsystem-specific pieces:

  • syscall_mm.inc : brk/mmap/munmap/clock_gettime
  • syscall_fs.inc : VFS, pipes, polling, stat and mount operations
  • syscall_proc.inc : fork/exec/wait/signal/session/process helpers
  • syscall_net.inc : socket syscalls and lwIP callbacks
Here is the call graph for this function:
Here is the caller graph for this function:

◆ syscall_dispatch_fs()

int64_t syscall_dispatch_fs ( uint64_t nr,
uint64_t arg1,
uint64_t arg2,
uint64_t arg3,
uint64_t arg4,
uint64_t arg5,
uint64_t arg6 )
Here is the caller graph for this function:

◆ syscall_dispatch_mm()

int64_t syscall_dispatch_mm ( uint64_t nr,
uint64_t arg1,
uint64_t arg2,
uint64_t arg3,
uint64_t arg4,
uint64_t arg5,
uint64_t arg6 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ syscall_dispatch_net()

int64_t syscall_dispatch_net ( uint64_t nr,
uint64_t arg1,
uint64_t arg2,
uint64_t arg3,
uint64_t arg4,
uint64_t arg5,
uint64_t arg6 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ syscall_dispatch_proc()

int64_t syscall_dispatch_proc ( uint64_t nr,
uint64_t arg1,
uint64_t arg2,
uint64_t arg3,
uint64_t arg4,
uint64_t arg5,
uint64_t arg6 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ syscall_has_pending_signal()

int syscall_has_pending_signal ( void )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function: