X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/0e1309c02f0703c050df09b71346dab60fc6df87..5ea8e2ba737f903db81d49b56778e883634512a5:/lunaix-os/includes/lunaix/process.h diff --git a/lunaix-os/includes/lunaix/process.h b/lunaix-os/includes/lunaix/process.h index 7c8c114..9686ee0 100644 --- a/lunaix-os/includes/lunaix/process.h +++ b/lunaix-os/includes/lunaix/process.h @@ -3,6 +3,7 @@ #include #include +#include #include #include #include @@ -13,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 @@ -60,6 +61,7 @@ struct proc_info struct llist_header siblings; struct llist_header children; struct llist_header grp_member; + waitq_t waitqueue; struct { @@ -79,6 +81,7 @@ struct proc_info int flags; void* sig_handler[_SIG_NUM]; struct v_fdtable* fdtable; + struct v_dnode* cwd; pid_t pgid; };