Expand description
This module provides the process management API for the operating system.
Modules
- clone 任务时指定的参数。
 - 实现与futex相关的系统调用
 - 模拟的链接、挂载模块 fat32本身不支持符号链接和硬链接,两个指向相同文件的目录条目将会被chkdsk报告为交叉链接并修复
 - 负责处理进程中与信号相关的内容
 
Structs
- The process control block
 
Statics
- Map from process id to arc pointer of process
 - Map from task id to arc pointer of task
 
Functions
- return the
Arc<Process>of the current process - current running task
 - 退出当前任务
 - To deal with the page fault
 - 初始化内核调度进程
 - 返回应用程序入口,用户栈底,用户堆底
 - 设置当前任务的clear_child_tid
 - 以进程作为中转调用task的sleep
 - 当从内核态到用户态时,统计对应进程的时间信息
 - 当从用户态到内核态时,统计对应进程的时间信息
 - 统计时间输出 (用户态秒,用户态微妙,内核态秒,内核态微妙)
 - 在当前进程找对应的子进程,并等待子进程结束 若找到了则返回对应的pid 否则返回一个状态
 - 以进程作为中转调用task的yield