AquilaOS documentation
How it works, and its code
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. */
9extern struct fs initramfs;
10
11/* Registers an archive format (cpio). */
13
14/* Unpacks the boot loader's module as the root filesystem. */
15int load_ramdisk(module_t *module);
16
17#endif /* ! _FS_INITRAMFS_H */
int initramfs_archiver_register(struct fs *fs)
Registers a filesystem that can make a root from a RAM disk archive.
Definition initramfs.c:32
int load_ramdisk(module_t *module)
Mounts the RAM disk as the root filesystem.
Definition initramfs.c:49
struct fs initramfs
A filesystem type.
Definition vfs.h:98