diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-04 19:18:23 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-04 19:18:23 -0400 |
| commit | 1768abb217f974cf96448ee847453b604800c546 (patch) | |
| tree | 2dccae458433118e02d25d82a66052a747c59c51 /boot/initrd.h | |
| parent | 8251da342161767fe203627223ccd4a7026701c6 (diff) | |
| download | jove-kernel-1768abb217f974cf96448ee847453b604800c546.tar.gz jove-kernel-1768abb217f974cf96448ee847453b604800c546.tar.bz2 jove-kernel-1768abb217f974cf96448ee847453b604800c546.zip | |
add generic initrd seek function. begin work on init loading
Diffstat (limited to 'boot/initrd.h')
| -rw-r--r-- | boot/initrd.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/boot/initrd.h b/boot/initrd.h index 9b3bba9..c56b6f8 100644 --- a/boot/initrd.h +++ b/boot/initrd.h @@ -3,9 +3,11 @@ #include "hal/obj.h" -int initrd_file_name(jove_owned_obj_t *obj, const char **nameptr); -int initrd_file_size(jove_owned_obj_t *obj, size_t *sizeptr); -int initrd_file_data(jove_owned_obj_t *obj, uintptr_t *dataptr); +const char *initrd_file_name(jove_owned_obj_t *obj); +size_t initrd_file_size(jove_owned_obj_t *obj); +void *initrd_file_data(jove_owned_obj_t *obj); + +jove_owned_obj_t *initrd_seek(jove_owned_obj_t *objdir, const char *name); void initrd_setup(void); |
