vfs: add initial ramfs driver

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-04 22:56:39 +02:00
commit e4122d1c65
5 changed files with 244 additions and 8 deletions

View file

@ -49,7 +49,6 @@ struct _inode {
u64 mode;
u64 ino_num;
u64 file_size;
dirent_t *dentry;
u64 flags;
@ -60,7 +59,6 @@ struct _inode {
list_t dirents;
struct _inode *parent_inode;
struct inode_ops i_ops;
};

View file

@ -4,7 +4,9 @@
#include <fs/vfs.h>
dirent_t *ramfs_mount(int flags, struct block_device *bdev);
#define FS_TYPE_RAMFS 0x1234
int ramfs_create(u64 flags, fs_t **out);
int ramfs_umount(fs_t *fs);
#endif /* _RAMFS_H_ */