Crate linux_syscall_api
source ·Expand description
This crate provides a safe interface to the Linux syscall API for Starry modules.
Modules
- Define the trap handler for the whole kernel
Structs
- An object providing access to an open file on the filesystem.
- A struct to represent a file path, which will be canonicalized
- 指定文件打开时的权限
Functions
- 创建一个链接
- 在完成一次系统调用之后,恢复全局目录
- 若使用多次new file打开同名文件,那么不同new file之间读写指针不共享,但是修改的内容是共享的
- To read a file with the given path
- 释放所有非内核进程
- To run a testcase with the given name and environment variables, which will be used in initproc
Type Aliases
- Flags for opening a file
- The error of a syscall, which is a
LinuxError
- The result of a syscall