Expand description
Syscall implementations.
StructsΒ§
- CLike
Str πA wrapper for the*const u8.
ConstantsΒ§
- Syscall function table. Indexed with the syscall number.
FunctionsΒ§
- Get the syscall number and all the five arguments. Invoke the syscall.
- sys_
bind_ πshared_ pool SYSNO: 19, bind a existed memory pool. - sys_
cgetc πSYSNO: 15, read a char from the console via scan_charc. - SYSNO: 18, create a shared memory pool.
- sys_
env_ πdestroy SYSNO: 4, destory a specified env with the id ofenvid. - sys_
exofork πSYSNO: 9, fork a new env which will be the child of the current env. - sys_
getenvid πSYSNO: 2, get the EnvData::id or the pid. (a.k.a in Linux) of the current env. - sys_
ipc_ πrecv SYSNO: 14, wait for a ipc-message. - sys_
ipc_ πtry_ send SYSNO: 13, Try to send a ipc-message to the target env. - sys_
lock πSYSNO: 20, lock a specified memory pool. - sys_
mem_ πalloc SYSNO: 6, alloc a page and map it tova. - sys_
mem_ πmap SYSNO: 7, map a page from one env (src_id) to another (dst_id). - sys_
mem_ πunmap SYSNO: 8, cancel the map of the specified virtual address for the specified env. - sys_
panic πSYSNO: 12, trigger the kernelβs panic with the given C-Style string. - sys_
print_ πcons SYSNO: 1, show onenum-lengthed string on the console. - sys_
putchar πSYSNO: 0, just show a character on the console. - sys_
read_ πdev SYSNO: 17, read data frompaintovawith the length oflen. - sys_
set_ πenv_ status SYSNO: 10, set the run status of the specified env. - SYSNO: 5, set the specified envβs user_tlb_mod_entry.
- sys_
set_ πtrapframe SYSNO: 11, set the trapframe of the specified env. - sys_
unlock πSYSNO: 21, unlock a memory pool. - sys_
write_ πdev SYSNO: 16, write data atvaintopawith the length oflen. - sys_
yield πSYSNO: 3, give out the CPU, re-schedule. NO-RETURN
Type AliasesΒ§
- Syscall
Fn πThe real syscall function type. - Syscall
RawPtr πJust a type used in the SYSCALL_TABLE. A holder.