summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2022-09-02 14:44:52 +0200
committerdzwdz2022-09-02 17:58:47 +0200
commitc16d956c0dd3d69748f7208e09bb69a6df8c6483 (patch)
tree38089f4b9e7fb153aa817e25340b7107f7cdf795 /src/kernel/proc.h
parent41a15bd16806261d66d55bbb85034553cd58361e (diff)
kernel/proc: introduce child ids for telling children apart
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index 780c8ee..0ae811e 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -51,7 +51,9 @@ struct process {
struct handle **_handles; /* points to struct handle *[HANDLE_MAX] */
uint64_t *handles_refcount; /* works just like pages_refcount */
- uint32_t id; /* only for debugging, don't expose to userland */
+ uint32_t cid; /* child id. unique amongst all of this process' siblings */
+ uint32_t nextcid; /* the child id to assign to the next spawned child */
+ uint32_t globalid; /* only for debugging, don't expose to userland */
bool noreap;
/* allocated once, the requests from WAITS4FS get stored here */