lib: fs: add library for implementing a filesystem service
This commit is contained in:
20
lib/libfs/include/fs/superblock.h
Normal file
20
lib/libfs/include/fs/superblock.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef FS_SUPERBLOCK_H_
|
||||
#define FS_SUPERBLOCK_H_
|
||||
|
||||
struct fs_inode;
|
||||
struct fs_dentry;
|
||||
struct fs_superblock;
|
||||
|
||||
struct fs_superblock_ops {
|
||||
struct fs_inode *(*s_alloc_inode)(struct fs_superblock *);
|
||||
};
|
||||
|
||||
struct fs_superblock {
|
||||
const struct fs_superblock_ops *s_ops;
|
||||
|
||||
struct fs_dentry *s_root;
|
||||
};
|
||||
|
||||
extern struct fs_inode *fs_superblock_alloc_inode(struct fs_superblock *sb);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user