summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2023-01-06 21:11:44 +0100
committerdzwdz2023-01-06 21:11:44 +0100
commita1a4ab33cd75f0bc1d5e71989b01ba3446c998ae (patch)
tree4796f9ffc780dcb0336ed7c66c0cb42584320d61 /src/kernel/proc.h
parente0c7bad47a54d865ef6194643e2cd20f6094e507 (diff)
kernel: basic procfs
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index eb39b51..07cba28 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -50,10 +50,14 @@ struct process {
struct vfs_mount *mount;
struct handle **_handles; /* points to struct handle *[HANDLE_MAX] */
uint64_t *handles_refcount; /* works just like pages_refcount */
+ struct {
+ struct handle *procfs;
+ } specialh;
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 */
+ uint32_t globalid; /* only for internal use, don't expose to userland */
+ uint32_t refcount; /* non-owning. should always be 0 on kill */
bool noreap;
/* allocated once, the requests from WAITS4FS get stored here */