diff options
author | dzwdz | 2023-08-31 01:06:41 +0200 |
---|---|---|
committer | dzwdz | 2023-08-31 01:06:41 +0200 |
commit | 6cbe58797781cb8514a62bb3ab0e3e8a5d58bce2 (patch) | |
tree | bc405a3bc28dce58f1a7141640a5e0605363224c /src/kernel/proc.h | |
parent | cf7877737ff5032f8bad59d57b048f66c4813b5b (diff) |
kernel: add _sys_getprocfs in place of HANDLE_PROCFS
This makes the side-effects more explicit, and feels less hacky than
`HANDLE_PROCFS`. I don't think accessing a handle alone should have
side-effects, even if it's a "special" one.
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r-- | src/kernel/proc.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h index 0dffe08..15da852 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -69,9 +69,6 @@ struct Proc { VfsMount *mount; Handle **_handles; /* points to Handle *[HANDLE_MAX] */ uint64_t *handles_refcount; /* works just like pages_refcount */ - struct { - Handle *procfs; - } specialh; // TODO pids should be 64bit. also typedef pid_t uint32_t globalid; /* only for internal use, don't expose to userland */ |