PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
mount.h File Reference
#include <kernel/fs/path.h>
#include <kernel/utils/map.h>
#include <kernel/utils/ref.h>
#include <sys/list.h>
#include <stdatomic.h>
#include <stdint.h>
Include dependency graph for mount.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mount_t
 Mount structure. More...
 

Macros

#define MOUNT_IS_ROOT(mount)   ((mount)->parent == (mount))
 Macro to check if a mount is the root filesystem.
 

Typedefs

typedef struct mount mount_t
 
typedef struct superblock superblock_t
 
typedef struct dentry dentry_t
 
typedef struct path path_t
 
typedef uint64_t mount_id_t
 Mount ID type.
 

Functions

mount_tmount_new (superblock_t *superblock, dentry_t *source, dentry_t *target, mount_t *parent, mode_t mode)
 Create a new mount.
 

Typedef Documentation

◆ mount_t

typedef struct mount mount_t

Definition at line 11 of file mount.h.

◆ superblock_t

typedef struct superblock superblock_t

Definition at line 12 of file mount.h.

◆ dentry_t

typedef struct dentry dentry_t

Definition at line 13 of file mount.h.

◆ path_t

typedef struct path path_t

Definition at line 14 of file mount.h.