xv6-simplified 0.1
简化版xv6
Loading...
Searching...
No Matches
Functions
sysfile.c File Reference

与文件相关的具体系统调用函数 More...

#include "include/types.h"
#include "include/param.h"
#include "include/riscv.h"
#include "include/proc.h"
#include "include/defs.h"
#include "include/fat32.h"
#include "include/file.h"
Include dependency graph for sysfile.c:

Functions

uint64 sys_write (void)
 write系统调用
 
uint64 sys_exec (void)
 exec系统调用,携带trapframe中的参数执行参数中的文件
 

Detailed Description

与文件相关的具体系统调用函数

Date
23.05.01
Author
xin
Version
0.1 @status Stable

Function Documentation

◆ sys_exec()

uint64 sys_exec ( void  )

exec系统调用,携带trapframe中的参数执行参数中的文件

Returns
返回exec返回的参数个数,若出现错误返回-1
Here is the call graph for this function:

◆ sys_write()

uint64 sys_write ( void  )

write系统调用

Returns
写入文件字节数,若失败返回-1
Here is the call graph for this function: