AquilaOS documentation
How it works, and its code
Toggle main menu visibility
Loading...
Searching...
No Matches
initramfs.h
Go to the documentation of this file.
1
#ifndef _FS_INITRAMFS_H
2
#define _FS_INITRAMFS_H
3
4
#include <
fs/vfs.h
>
5
#include <
boot/boot.h
>
6
7
/* The initial RAM disk (fs/initramfs/): an archive that the boot loader
8
* loads, unpacked into a tmpfs as the first root filesystem. */
9
extern
struct
fs
initramfs
;
10
11
/* Registers an archive format (cpio). */
12
int
initramfs_archiver_register
(
struct
fs
*
fs
);
13
14
/* Unpacks the boot loader's module as the root filesystem. */
15
int
load_ramdisk
(
module_t
*module);
16
17
#endif
/* ! _FS_INITRAMFS_H */
boot.h
initramfs_archiver_register
int initramfs_archiver_register(struct fs *fs)
Registers a filesystem that can make a root from a RAM disk archive.
Definition
initramfs.c:32
load_ramdisk
int load_ramdisk(module_t *module)
Mounts the RAM disk as the root filesystem.
Definition
initramfs.c:49
initramfs
struct fs initramfs
fs
A filesystem type.
Definition
vfs.h:98
module_t
Definition
boot.h:15
vfs.h
kernel
include
fs
initramfs.h
Generated by
1.18.0