summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2022-05-01 20:09:52 +0200
committerdzwdz2022-05-01 20:09:52 +0200
commitd996f88bfda890df5d2b76e7c06cae329e04ab00 (patch)
treeeebe7b88bc48960a78648001adf38b5c66ffcfe3 /src/kernel/proc.h
parent7c62817193517f298bc566f3803c00d53a9a2b94 (diff)
kernel/proc: make handles separate refcounted objects
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index 4fabe0e..7e3cdd3 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -55,7 +55,7 @@ struct process {
struct vfs_mount *mount;
- struct handle handles[HANDLE_MAX];
+ struct handle *handles[HANDLE_MAX];
};
extern struct process *process_first;
@@ -75,7 +75,7 @@ struct process *process_next(struct process *);
struct process *process_find(enum process_state);
size_t process_find_multiple(enum process_state, struct process **buf, size_t max);
-handle_t process_find_handle(struct process *proc); // finds the first free handle
+handle_t process_find_handle(struct process *proc, handle_t start_at); // finds the first free handle
void process_transition(struct process *, enum process_state);