PatchworkOS
Loading...
Searching...
No Matches
mount.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
kernel/utils/map.h
>
4
#include <
kernel/utils/ref.h
>
5
6
#include <
stdatomic.h
>
7
#include <
stdint.h
>
8
9
typedef
struct
mount
mount_t
;
10
typedef
struct
superblock
superblock_t
;
11
typedef
struct
dentry
dentry_t
;
12
typedef
struct
path
path_t
;
13
28
typedef
uint64_t
mount_id_t
;
35
typedef
struct
mount
36
{
37
ref_t
ref
;
38
mount_id_t
id
;
39
map_entry_t
mapEntry
;
40
superblock_t
*
superblock
;
41
dentry_t
*
mountpoint
;
42
dentry_t
*
root
;
43
mount_t
*
parent
;
44
}
mount_t
;
45
63
mount_t
*
mount_new
(
superblock_t
* superblock,
dentry_t
* root,
dentry_t
* mountpoint,
mount_t
* parent);
64
mount
static mount_t * mount
Definition
acpi.c:15
mount_id_t
uint64_t mount_id_t
Mount ID type.
Definition
mount.h:28
mount_new
mount_t * mount_new(superblock_t *superblock, dentry_t *root, dentry_t *mountpoint, mount_t *parent)
Create a new mount.
Definition
mount.c:39
map.h
ref.h
stdatomic.h
stdint.h
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:17
dentry_t
Directory entry structure.
Definition
dentry.h:83
map_entry_t
Map entry structure.
Definition
map.h:57
mount_t
Mount structure.
Definition
mount.h:36
mount_t::superblock
superblock_t * superblock
The superblock of the mounted filesystem.
Definition
mount.h:40
mount_t::mountpoint
dentry_t * mountpoint
The dentry that this filesystem is mounted on, can be NULL for the root filesystem.
Definition
mount.h:41
mount_t::mapEntry
map_entry_t mapEntry
Definition
mount.h:39
mount_t::root
dentry_t * root
The root dentry of the mounted filesystem.
Definition
mount.h:42
mount_t::parent
mount_t * parent
The parent mount, can be NULL for the root filesystem.
Definition
mount.h:43
mount_t::ref
ref_t ref
Definition
mount.h:37
mount_t::id
mount_id_t id
Definition
mount.h:38
path_t
Path structure.
Definition
path.h:110
ref_t
Reference counting structure.
Definition
ref.h:30
superblock_t
Superblock structure.
Definition
superblock.h:44
include
kernel
fs
mount.h
Generated by
1.9.8