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
9typedef struct mount mount_t;
10typedef struct superblock superblock_t;
11typedef struct dentry dentry_t;
12typedef struct path path_t;
13
45
63mount_t* mount_new(superblock_t* superblock, dentry_t* root, dentry_t* mountpoint, mount_t* parent);
64
static mount_t * mount
Definition acpi.c:15
uint64_t mount_id_t
Mount ID type.
Definition mount.h:28
mount_t * mount_new(superblock_t *superblock, dentry_t *root, dentry_t *mountpoint, mount_t *parent)
Create a new mount.
Definition mount.c:39
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
Directory entry structure.
Definition dentry.h:83
Map entry structure.
Definition map.h:57
Mount structure.
Definition mount.h:36
superblock_t * superblock
The superblock of the mounted filesystem.
Definition mount.h:40
dentry_t * mountpoint
The dentry that this filesystem is mounted on, can be NULL for the root filesystem.
Definition mount.h:41
map_entry_t mapEntry
Definition mount.h:39
dentry_t * root
The root dentry of the mounted filesystem.
Definition mount.h:42
mount_t * parent
The parent mount, can be NULL for the root filesystem.
Definition mount.h:43
ref_t ref
Definition mount.h:37
mount_id_t id
Definition mount.h:38
Path structure.
Definition path.h:110
Reference counting structure.
Definition ref.h:30
Superblock structure.
Definition superblock.h:44