MOS Source Code
Loading...
Searching...
No Matches
SyscallEntry Struct Reference

#include <decl.h>

Static Public Member Functions

static fd_t do_sys_vfs_openat (fd_t dirfd, const char *file_path, u64 flags)
 
static long do_sys_vfs_fstatat (fd_t dirfd, const char *file_path, file_stat_t *stat_buf, u64 flags)
 
static size_t do_sys_io_read (fd_t fd, void *buffer, size_t size)
 
static size_t do_sys_io_write (fd_t fd, const void *buffer, size_t size)
 
static bool do_sys_io_close (fd_t fd)
 
static __attribute__ ((__noreturn__)) void do_sys_exit(u32 exit_code)
 
static void do_sys_yield_cpu (void)
 
static pid_t do_sys_fork (void)
 
static pid_t do_sys_get_pid (void)
 
static pid_t do_sys_get_parent_pid (void)
 
static pid_t do_sys_spawn (const char *file_path, const char *const *argv, const char *const *envp)
 
static tid_t do_sys_create_thread (const char *name, thread_entry_t entry, void *arg, size_t stack_size, void *stack)
 
static tid_t do_sys_get_tid (void)
 
static __attribute__ ((__noreturn__)) void do_sys_thread_exit(void)
 
static bool do_sys_wait_for_thread (tid_t tid)
 
static bool do_sys_futex_wait (futex_word_t *futex, u32 val)
 
static bool do_sys_futex_wake (futex_word_t *futex, size_t count)
 
static fd_t do_sys_ipc_create (const char *name, size_t max_pending_connections)
 
static fd_t do_sys_ipc_accept (fd_t fd)
 
static fd_t do_sys_ipc_connect (const char *name, size_t buffer_size)
 
static u64 do_sys_arch_syscall (u64 nr, u64 arg1, u64 arg2, u64 arg3, u64 arg4)
 
static long do_sys_vfs_mount (const char *device, const char *mount_point, const char *fs_type, const char *options)
 
static ssize_t do_sys_vfs_readlinkat (fd_t dirfd, const char *path, char *buf, size_t buf_size)
 
static long do_sys_vfs_unlinkat (fd_t dirfd, const char *path)
 
static long do_sys_vfs_symlink (const char *link_path, const char *target)
 
static long do_sys_vfs_mkdir (const char *path)
 
static size_t do_sys_vfs_list_dir (fd_t fd, char *buffer, size_t buffer_size)
 
static long do_sys_fd_manipulate (fd_t fd, u64 cmd, void *arg)
 
static voiddo_sys_mmap_anonymous (ptr_t hint_addr, size_t size, mem_perm_t perm, u64 flags)
 
static voiddo_sys_mmap_file (ptr_t hint_addr, size_t size, mem_perm_t perm, u64 flags, fd_t fd, off_t offset)
 
static pid_t do_sys_wait_for_process (pid_t pid, u32 *exit_code, u64 flags)
 
static bool do_sys_munmap (void *addr, size_t size)
 
static long do_sys_vfs_chdirat (fd_t dirfd, const char *path)
 
static ssize_t do_sys_vfs_getcwd (char *buf, size_t buf_size)
 
static off_t do_sys_io_seek (fd_t fd, off_t offset, io_seek_whence_t whence)
 
static off_t do_sys_io_tell (fd_t fd)
 
static bool do_sys_signal_register (signal_t signum, const sigaction_t *action)
 
static long do_sys_signal_process (pid_t pid, signal_t signum)
 
static long do_sys_signal_thread (tid_t tid, signal_t signum)
 
static void do_sys_poweroff (bool reboot, u32 magic)
 
static __attribute__ ((__noreturn__)) void do_sys_signal_return(void *sp)
 
static bool do_sys_vm_protect (void *addr, size_t size, mem_perm_t perm)
 
static int do_sys_io_poll (struct pollfd *fds, nfds_t nfds, int timeout)
 
static int do_sys_io_pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct timespec *timeout, const sigset_t *sigmask)
 
static long do_sys_execveat (fd_t dirfd, const char *file_path, const char *const *argv, const char *const *envp, u64 flags)
 
static long do_sys_clock_msleep (u64 ms)
 
static fd_t do_sys_io_dup (fd_t fd)
 
static fd_t do_sys_io_dup2 (fd_t old_fd, fd_t new_fd)
 
static bool do_sys_dmabuf_alloc (size_t n_pages, ptr_t *out_paddr, ptr_t *out_vaddr)
 
static bool do_sys_dmabuf_free (ptr_t vaddr, ptr_t paddr)
 
static bool do_sys_dmabuf_share (void *buf, size_t bufsize, ptr_t *out_paddr)
 
static bool do_sys_dmabuf_unshare (ptr_t paddr, size_t size, void *vaddr)
 
static long do_sys_pipe (fd_t *out_read_fd, fd_t *out_write_fd, u64 flags)
 
static ssize_t do_sys_io_readv (fd_t fd, const struct iovec *iov, int iov_count)
 
static long do_sys_vfs_unmount (const char *mount_point)
 
static long do_sys_clock_gettimeofday (struct timespec *tv)
 
static long do_sys_thread_setname (tid_t tid, const char *name)
 
static ssize_t do_sys_thread_getname (tid_t tid, char *buf, size_t buf_size)
 
static long do_sys_vfs_fchmodat (fd_t dirfd, const char *path, int mode, u64 flags)
 
static long do_sys_io_pread (fd_t fd, void *buf, size_t count, off_t offset)
 
static fd_t do_sys_memfd_create (const char *name, u64 flags)
 
static long do_sys_signal_mask_op (int how, const sigset_t *set, sigset_t *oldset)
 
static long do_sys_vfs_fsync (fd_t fd, bool data_only)
 

Detailed Description

Definition at line 16 of file decl.h.

Member Function Documentation

◆ do_sys_vfs_openat()

static fd_t do_sys_vfs_openat ( fd_t dirfd,
const char * file_path,
u64 flags )
static

Referenced by dispatch_syscall().

◆ do_sys_vfs_fstatat()

static long do_sys_vfs_fstatat ( fd_t dirfd,
const char * file_path,
file_stat_t * stat_buf,
u64 flags )
static

Referenced by dispatch_syscall().

◆ do_sys_io_read()

static size_t do_sys_io_read ( fd_t fd,
void * buffer,
size_t size )
static

Referenced by dispatch_syscall().

◆ do_sys_io_write()

static size_t do_sys_io_write ( fd_t fd,
const void * buffer,
size_t size )
static

Referenced by dispatch_syscall().

◆ do_sys_io_close()

static bool do_sys_io_close ( fd_t fd)
static

Referenced by dispatch_syscall().

◆ __attribute__() [1/3]

static __attribute__ ( (__noreturn__) )
static

◆ do_sys_yield_cpu()

static void do_sys_yield_cpu ( void )
static

Referenced by dispatch_syscall().

◆ do_sys_fork()

static pid_t do_sys_fork ( void )
static

Referenced by dispatch_syscall().

◆ do_sys_get_pid()

static pid_t do_sys_get_pid ( void )
static

Referenced by dispatch_syscall().

◆ do_sys_get_parent_pid()

static pid_t do_sys_get_parent_pid ( void )
static

Referenced by dispatch_syscall().

◆ do_sys_spawn()

static pid_t do_sys_spawn ( const char * file_path,
const char *const * argv,
const char *const * envp )
static

Referenced by dispatch_syscall().

◆ do_sys_create_thread()

static tid_t do_sys_create_thread ( const char * name,
thread_entry_t entry,
void * arg,
size_t stack_size,
void * stack )
static

Referenced by dispatch_syscall().

◆ do_sys_get_tid()

static tid_t do_sys_get_tid ( void )
static

Referenced by dispatch_syscall().

◆ __attribute__() [2/3]

static __attribute__ ( (__noreturn__) )
static

◆ do_sys_wait_for_thread()

static bool do_sys_wait_for_thread ( tid_t tid)
static

Referenced by dispatch_syscall().

◆ do_sys_futex_wait()

static bool do_sys_futex_wait ( futex_word_t * futex,
u32 val )
static

Referenced by dispatch_syscall().

◆ do_sys_futex_wake()

static bool do_sys_futex_wake ( futex_word_t * futex,
size_t count )
static

Referenced by dispatch_syscall().

◆ do_sys_ipc_create()

static fd_t do_sys_ipc_create ( const char * name,
size_t max_pending_connections )
static

Referenced by dispatch_syscall().

◆ do_sys_ipc_accept()

static fd_t do_sys_ipc_accept ( fd_t fd)
static

Referenced by dispatch_syscall().

◆ do_sys_ipc_connect()

static fd_t do_sys_ipc_connect ( const char * name,
size_t buffer_size )
static

Referenced by dispatch_syscall().

◆ do_sys_arch_syscall()

static u64 do_sys_arch_syscall ( u64 nr,
u64 arg1,
u64 arg2,
u64 arg3,
u64 arg4 )
static

Referenced by dispatch_syscall().

◆ do_sys_vfs_mount()

static long do_sys_vfs_mount ( const char * device,
const char * mount_point,
const char * fs_type,
const char * options )
static

Referenced by dispatch_syscall().

◆ do_sys_vfs_readlinkat()

static ssize_t do_sys_vfs_readlinkat ( fd_t dirfd,
const char * path,
char * buf,
size_t buf_size )
static

Referenced by dispatch_syscall().

◆ do_sys_vfs_unlinkat()

static long do_sys_vfs_unlinkat ( fd_t dirfd,
const char * path )
static

Referenced by dispatch_syscall().

◆ do_sys_vfs_symlink()

static long do_sys_vfs_symlink ( const char * link_path,
const char * target )
static

Referenced by dispatch_syscall().

◆ do_sys_vfs_mkdir()

static long do_sys_vfs_mkdir ( const char * path)
static

Referenced by dispatch_syscall().

◆ do_sys_vfs_list_dir()

static size_t do_sys_vfs_list_dir ( fd_t fd,
char * buffer,
size_t buffer_size )
static

Referenced by dispatch_syscall().

◆ do_sys_fd_manipulate()

static long do_sys_fd_manipulate ( fd_t fd,
u64 cmd,
void * arg )
static

Referenced by dispatch_syscall().

◆ do_sys_mmap_anonymous()

static void * do_sys_mmap_anonymous ( ptr_t hint_addr,
size_t size,
mem_perm_t perm,
u64 flags )
static

Referenced by dispatch_syscall().

◆ do_sys_mmap_file()

static void * do_sys_mmap_file ( ptr_t hint_addr,
size_t size,
mem_perm_t perm,
u64 flags,
fd_t fd,
off_t offset )
static

Referenced by dispatch_syscall().

◆ do_sys_wait_for_process()

static pid_t do_sys_wait_for_process ( pid_t pid,
u32 * exit_code,
u64 flags )
static

Referenced by dispatch_syscall().

◆ do_sys_munmap()

static bool do_sys_munmap ( void * addr,
size_t size )
static

Referenced by dispatch_syscall().

◆ do_sys_vfs_chdirat()

static long do_sys_vfs_chdirat ( fd_t dirfd,
const char * path )
static

Referenced by dispatch_syscall().

◆ do_sys_vfs_getcwd()

static ssize_t do_sys_vfs_getcwd ( char * buf,
size_t buf_size )
static

Referenced by dispatch_syscall().

◆ do_sys_io_seek()

static off_t do_sys_io_seek ( fd_t fd,
off_t offset,
io_seek_whence_t whence )
static

Referenced by dispatch_syscall().

◆ do_sys_io_tell()

static off_t do_sys_io_tell ( fd_t fd)
static

Referenced by dispatch_syscall().

◆ do_sys_signal_register()

static bool do_sys_signal_register ( signal_t signum,
const sigaction_t * action )
static

Referenced by dispatch_syscall().

◆ do_sys_signal_process()

static long do_sys_signal_process ( pid_t pid,
signal_t signum )
static

Referenced by dispatch_syscall().

◆ do_sys_signal_thread()

static long do_sys_signal_thread ( tid_t tid,
signal_t signum )
static

Referenced by dispatch_syscall().

◆ do_sys_poweroff()

static void do_sys_poweroff ( bool reboot,
u32 magic )
static

Referenced by dispatch_syscall().

◆ __attribute__() [3/3]

static __attribute__ ( (__noreturn__) )
static

◆ do_sys_vm_protect()

static bool do_sys_vm_protect ( void * addr,
size_t size,
mem_perm_t perm )
static

Referenced by dispatch_syscall().

◆ do_sys_io_poll()

static int do_sys_io_poll ( struct pollfd * fds,
nfds_t nfds,
int timeout )
static

Referenced by dispatch_syscall().

◆ do_sys_io_pselect()

static int do_sys_io_pselect ( int nfds,
fd_set * readfds,
fd_set * writefds,
fd_set * exceptfds,
const struct timespec * timeout,
const sigset_t * sigmask )
static

Referenced by dispatch_syscall().

◆ do_sys_execveat()

static long do_sys_execveat ( fd_t dirfd,
const char * file_path,
const char *const * argv,
const char *const * envp,
u64 flags )
static

Referenced by dispatch_syscall().

◆ do_sys_clock_msleep()

static long do_sys_clock_msleep ( u64 ms)
static

Referenced by dispatch_syscall().

◆ do_sys_io_dup()

static fd_t do_sys_io_dup ( fd_t fd)
static

Referenced by dispatch_syscall().

◆ do_sys_io_dup2()

static fd_t do_sys_io_dup2 ( fd_t old_fd,
fd_t new_fd )
static

Referenced by dispatch_syscall().

◆ do_sys_dmabuf_alloc()

static bool do_sys_dmabuf_alloc ( size_t n_pages,
ptr_t * out_paddr,
ptr_t * out_vaddr )
static

Referenced by dispatch_syscall().

◆ do_sys_dmabuf_free()

static bool do_sys_dmabuf_free ( ptr_t vaddr,
ptr_t paddr )
static

Referenced by dispatch_syscall().

◆ do_sys_dmabuf_share()

static bool do_sys_dmabuf_share ( void * buf,
size_t bufsize,
ptr_t * out_paddr )
static

Referenced by dispatch_syscall().

◆ do_sys_dmabuf_unshare()

static bool do_sys_dmabuf_unshare ( ptr_t paddr,
size_t size,
void * vaddr )
static

Referenced by dispatch_syscall().

◆ do_sys_pipe()

static long do_sys_pipe ( fd_t * out_read_fd,
fd_t * out_write_fd,
u64 flags )
static

Referenced by dispatch_syscall().

◆ do_sys_io_readv()

static ssize_t do_sys_io_readv ( fd_t fd,
const struct iovec * iov,
int iov_count )
static

Referenced by dispatch_syscall().

◆ do_sys_vfs_unmount()

static long do_sys_vfs_unmount ( const char * mount_point)
static

Referenced by dispatch_syscall().

◆ do_sys_clock_gettimeofday()

static long do_sys_clock_gettimeofday ( struct timespec * tv)
static

Referenced by dispatch_syscall().

◆ do_sys_thread_setname()

static long do_sys_thread_setname ( tid_t tid,
const char * name )
static

Referenced by dispatch_syscall().

◆ do_sys_thread_getname()

static ssize_t do_sys_thread_getname ( tid_t tid,
char * buf,
size_t buf_size )
static

Referenced by dispatch_syscall().

◆ do_sys_vfs_fchmodat()

static long do_sys_vfs_fchmodat ( fd_t dirfd,
const char * path,
int mode,
u64 flags )
static

Referenced by dispatch_syscall().

◆ do_sys_io_pread()

static long do_sys_io_pread ( fd_t fd,
void * buf,
size_t count,
off_t offset )
static

Referenced by dispatch_syscall().

◆ do_sys_memfd_create()

static fd_t do_sys_memfd_create ( const char * name,
u64 flags )
static

Referenced by dispatch_syscall().

◆ do_sys_signal_mask_op()

static long do_sys_signal_mask_op ( int how,
const sigset_t * set,
sigset_t * oldset )
static

Referenced by dispatch_syscall().

◆ do_sys_vfs_fsync()

static long do_sys_vfs_fsync ( fd_t fd,
bool data_only )
static

Referenced by dispatch_syscall().


The documentation for this struct was generated from the following file: