From e25a47fcc4db09ab9b845a691297da67243e6049 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Tue, 2 Apr 2024 12:03:52 +0200 Subject: Kernel: Use "struct list" to handle file descriptors instead of a fixed sized array --- kernel/lib/list.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kernel/lib/list.h') diff --git a/kernel/lib/list.h b/kernel/lib/list.h index b7085cd..b1f0127 100644 --- a/kernel/lib/list.h +++ b/kernel/lib/list.h @@ -9,6 +9,8 @@ struct list { int list_init(struct list *list); void list_reset(struct list *list); void list_free(struct list *list); +int list_clone(struct list *in, struct list *out); int list_add(struct list *list, void *entry, int *index); +int list_set(struct list *list, int index, void *entry); int list_get(const struct list *list, int index, void **out); #endif -- cgit v1.2.3