lib: fs: add library for implementing a filesystem service
This commit is contained in:
17
lib/libfs/include/fs/inode.h
Normal file
17
lib/libfs/include/fs/inode.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef FS_INODE_H_
|
||||
#define FS_INODE_H_
|
||||
|
||||
struct fs_inode;
|
||||
struct fs_dentry;
|
||||
struct fs_superblock;
|
||||
|
||||
struct fs_inode_ops {
|
||||
int (*i_lookup)(struct fs_inode *, struct fs_dentry *);
|
||||
};
|
||||
|
||||
struct fs_inode {
|
||||
struct fs_superblock *i_sb;
|
||||
const struct fs_inode_ops *i_ops;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user