X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/620a2ee90a60979955c318cc1b37741184137bd6..a4ec38a4c7ef61b04b92d34637c846a8e2e95f7f:/lunaix-os/includes/lunaix/process.h diff --git a/lunaix-os/includes/lunaix/process.h b/lunaix-os/includes/lunaix/process.h index d35bfe7..9686ee0 100644 --- a/lunaix-os/includes/lunaix/process.h +++ b/lunaix-os/includes/lunaix/process.h @@ -3,6 +3,8 @@ #include #include +#include +#include #include #include #include @@ -12,7 +14,7 @@ // 虽然内核不是进程,但为了区分,这里使用Pid=-1来指代内核。这主要是方便物理页所有权检查。 #define KERNEL_PID -1 -#define PS_STOPPED 0 +#define PS_READY 0 #define PS_RUNNING 1 #define PS_TERMNAT 2 #define PS_DESTROY 4 @@ -59,6 +61,7 @@ struct proc_info struct llist_header siblings; struct llist_header children; struct llist_header grp_member; + waitq_t waitqueue; struct { @@ -77,6 +80,8 @@ struct proc_info sigset_t sig_inprogress; int flags; void* sig_handler[_SIG_NUM]; + struct v_fdtable* fdtable; + struct v_dnode* cwd; pid_t pgid; };