Voxia OS
v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
file.h
Go to the documentation of this file.
1
#ifndef __VFS__FILE_H__
2
#define __VFS__FILE_H__
3
4
#include <
type.h
>
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
typedef
struct
file
file_t
;
11
12
typedef
struct
{
13
size_t
(*
read
)(
struct
file
*,
char
*
buffer
,
size_t
size
);
14
}
file_operations_t
;
15
16
struct
file
{
17
file_operations_t
*
ops
;
18
void
*
private_data
;
19
};
20
21
#ifdef __cplusplus
22
}
23
#endif
24
25
#endif
// __VFS__FILE_H__
buffer
volatile uint32_t buffer[5]
Definition
ehci.hpp:8
file_t
struct file file_t
Definition
file.h:10
file_operations_t
Definition
file.h:12
file_operations_t::read
size_t(* read)(struct file *, char *buffer, size_t size)
Definition
file.h:13
file
Definition
file.h:16
file::private_data
void * private_data
Definition
file.h:18
file::ops
file_operations_t * ops
Definition
file.h:17
type.h
size_t
unsigned long size_t
Definition
type.h:55
size
size_t size
Definition
vnode.h:3
include
vfs
file.h
Generated on Sat May 30 2026 11:09:57 for Voxia OS by
1.13.2