UbixOS  2.0
syscall.c File Reference
#include <ubixos/syscalls.h>
#include <ubixos/syscall.h>
#include <ubixos/sched.h>
#include <ubixos/endtask.h>
#include <ubixos/spinlock.h>
#include <ubixos/vitals.h>
#include <sys/trap.h>
#include <sys/elf.h>
#include <string.h>
#include <lib/kprintf.h>
#include <ubixos/kpanic.h>
#include <vmm/vmm.h>
Include dependency graph for syscall.c:

Go to the source code of this file.

Data Structures

struct  _UbixUser
 

Typedefs

typedef struct _UbixUser UbixUser
 

Functions

int invalidCall ()
 
void sys_call (struct trapframe *frame)
 
int sys_getcwd (struct thread *td, struct sys_getcwd_args *args)
 
int sys_sched_yield (struct thread *td, void *args)
 
int sysAddModule ()
 
int sysAuth (UbixUser *uu)
 
int sysCheckPid (int pid, int *ptr)
 
int sysExit (int status)
 
int sysGetDrives (uInt32 *ptr)
 
int sysGetFreePage (struct thread *td, uint32_t *count)
 
int sysGetpid (int *pid)
 
int sysGetTime (uInt32 *ptr)
 
int sysGetUptime (uInt32 *ptr)
 
int sysPasswd (char *passwd)
 
int sysRmModule ()
 
int sysStartSDE ()
 

Typedef Documentation

◆ UbixUser

typedef struct _UbixUser UbixUser

Definition at line 115 of file syscall.c.

Function Documentation

◆ invalidCall()

int invalidCall ( )

Definition at line 101 of file syscall.c.

References _current, taskStruct::id, kprintf(), and sys_call().

Here is the call graph for this function:

◆ sys_call()

◆ sys_getcwd()

int sys_getcwd ( struct thread td,
struct sys_getcwd_args args 
)

Definition at line 204 of file syscall.c.

References _current, sys_getcwd_args::buf, osInfo::cwd, taskStruct::oInfo, sprintf(), and strlen().

Here is the call graph for this function:

◆ sys_sched_yield()

int sys_sched_yield ( struct thread td,
void *  args 
)

Definition at line 224 of file syscall.c.

References sched_yield().

Here is the call graph for this function:

◆ sysAddModule()

int sysAddModule ( )

Definition at line 145 of file syscall.c.

◆ sysAuth()

int sysAuth ( UbixUser uu)

Definition at line 125 of file syscall.c.

References kprintf().

Here is the call graph for this function:

◆ sysCheckPid()

int sysCheckPid ( int  pid,
int *  ptr 
)

Definition at line 164 of file syscall.c.

References schedFindTask(), and taskStruct::state.

Here is the call graph for this function:

◆ sysExit()

int sysExit ( int  status)

Definition at line 159 of file syscall.c.

◆ sysGetDrives()

int sysGetDrives ( uInt32 ptr)

Definition at line 186 of file syscall.c.

◆ sysGetFreePage()

int sysGetFreePage ( struct thread td,
uint32_t count 
)

Definition at line 179 of file syscall.c.

References _current, taskStruct::id, thread::td_retval, VM_THRD, and vmm_getFreeVirtualPage().

Here is the call graph for this function:

◆ sysGetpid()

int sysGetpid ( int *  pid)

Definition at line 153 of file syscall.c.

References _current, and taskStruct::id.

◆ sysGetTime()

int sysGetTime ( uInt32 ptr)

Definition at line 198 of file syscall.c.

References systemVitals, vitalsStruct::sysUptime, and vitalsStruct::timeStart.

◆ sysGetUptime()

int sysGetUptime ( uInt32 ptr)

Definition at line 192 of file syscall.c.

References systemVitals, and vitalsStruct::sysTicks.

◆ sysPasswd()

int sysPasswd ( char *  passwd)

Definition at line 140 of file syscall.c.

References _current, kprintf(), and taskStruct::uid.

Here is the call graph for this function:

◆ sysRmModule()

int sysRmModule ( )

Definition at line 149 of file syscall.c.

◆ sysStartSDE()

int sysStartSDE ( )

Definition at line 229 of file syscall.c.