PatchworkOS
Loading...
Searching...
No Matches
superblock.h File Reference
#include <kernel/fs/sysfs.h>
#include <kernel/utils/ref.h>
#include <stdint.h>
#include <sys/io.h>
#include <sys/list.h>

Go to the source code of this file.

Data Structures

struct  superblock_t
 Superblock structure. More...
 
struct  superblock_ops_t
 Superblock operations structure. More...
 

Typedefs

typedef struct filesystem filesystem_t
 
typedef struct superblock superblock_t
 
typedef struct superblock_ops superblock_ops_t
 
typedef struct dentry_ops dentry_ops_t
 
typedef struct inode inode_t
 
typedef struct dentry dentry_t
 
typedef uint64_t superblock_id_t
 Superblock ID type.
 

Functions

superblock_tsuperblock_new (const filesystem_t *fs, const char *deviceName, const superblock_ops_t *ops, const dentry_ops_t *dentryOps)
 Create a new superblock.
 
void superblock_inc_mount_count (superblock_t *superblock)
 Increment the mount count of a superblock.
 
void superblock_dec_mount_count (superblock_t *superblock)
 Decrement the mount count of a superblock.
 

Typedef Documentation

◆ dentry_ops_t

typedef struct dentry_ops dentry_ops_t

Definition at line 13 of file superblock.h.

◆ dentry_t

typedef struct dentry dentry_t

Definition at line 15 of file superblock.h.

◆ filesystem_t

typedef struct filesystem filesystem_t

Definition at line 10 of file superblock.h.

◆ inode_t

typedef struct inode inode_t

Definition at line 14 of file superblock.h.

◆ superblock_ops_t

typedef struct superblock_ops superblock_ops_t

Definition at line 12 of file superblock.h.

◆ superblock_t

typedef struct superblock superblock_t

Definition at line 11 of file superblock.h.