Voxia OS
v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
initrd.h
Go to the documentation of this file.
1
// Copyright (c) 2025 Mohammad Arfan
2
3
// Permission is hereby granted, free of charge, to any person obtaining a copy
4
// of this software and associated documentation files (the "Software"), to deal
5
// in the Software without restriction, including without limitation the rights
6
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
// copies of the Software, and to permit persons to whom the Software is
8
// furnished to do so, subject to the following conditions:
9
10
// The above copyright notice and this permission notice shall be included in
11
// all copies or substantial portions of the Software.
12
13
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
// SOFTWARE.
20
21
#ifndef __INIT__INITRD_H__
22
#define __INIT__INITRD_H__
23
24
#include <
type.h
>
25
#include <
vfs/dev.h
>
26
#include <
vfs/filesystem.h
>
27
#include <
vfs/vfs.h
>
28
29
typedef
struct
initrd_module
{
30
size_t
size
;
31
uint64_t
start
;
32
}
initrd_module_t
;
33
34
typedef
struct
initrd_file
{
35
char
name
[100];
36
uint32_t
size
;
37
uint64_t
data
;
38
}
initrd_file_t
;
39
40
char
*
initrd_load
(
initrd_module_t
module,
const
char
*
name
);
41
42
#endif
// __INIT__INITRD_H__
name
kstring name
Definition
dentry.h:5
dev.h
filesystem.h
initrd_file_t
struct initrd_file initrd_file_t
initrd_load
char * initrd_load(initrd_module_t module, const char *name)
initrd_module_t
struct initrd_module initrd_module_t
initrd_file
Definition
initrd.h:34
initrd_file::data
uint64_t data
Definition
initrd.h:37
initrd_file::size
uint32_t size
Definition
initrd.h:36
initrd_file::name
char name[100]
Definition
initrd.h:35
initrd_module
Definition
initrd.h:29
initrd_module::size
size_t size
Definition
initrd.h:30
initrd_module::start
uint64_t start
Definition
initrd.h:31
type.h
uint32_t
unsigned int uint32_t
Definition
type.h:19
uint64_t
unsigned long uint64_t
Definition
type.h:25
vfs.h
kernel
init
initrd.h
Generated on Sat May 30 2026 11:09:57 for Voxia OS by
1.13.2