diff options
| author | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-08-16 18:03:58 +0200 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-08-16 18:03:58 +0200 |
| commit | 501a706643a056863b6ea214882a2be270966f87 (patch) | |
| tree | 7f1ff025e7aa37b936ce15ebfe21783ae312d7f2 /kernel/include/libk/list.h | |
| parent | 5c1c4eb0a4084b666342e6f8eb348eb80be6214b (diff) | |
libk/list.h; reading mmap from multiboot2
Diffstat (limited to 'kernel/include/libk/list.h')
| -rw-r--r-- | kernel/include/libk/list.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/include/libk/list.h b/kernel/include/libk/list.h new file mode 100644 index 0000000..f6a97f8 --- /dev/null +++ b/kernel/include/libk/list.h @@ -0,0 +1,14 @@ +#ifndef LIST_H +#define LIST_H + +struct list_t { + struct list_t* next; + void* data; +}; +typedef struct list_t list_t; + +void add_to_list_head(list_t** ptr, void* data); +void add_to_list_tail(list_t** ptr, void* data); +void free_list(list_t** ptr); + +#endif |
