#ifndef _KERNEL_FS_DEF_VFS_OP_H #define _KERNEL_FS_DEF_VFS_OP_H #include #define DEFINE_VFS_MOUNT(name) \ int name (struct vfs_volume* UNUSED volume, struct proc* UNUSED proc, \ struct reschedule_ctx* UNUSED rctx, bool UNUSED format) #define DEFINE_VFS_FORMAT(name) \ int name (struct vfs_volume* UNUSED volume, struct proc* UNUSED proc, \ struct reschedule_ctx* UNUSED rctx) #define DEFINE_VFS_DESCRIBE(name) \ int name (struct vfs_volume* UNUSED volume, struct proc* UNUSED proc, \ struct reschedule_ctx* UNUSED rctx, const char* UNUSED path, struct desc* UNUSED desc) #define DEFINE_VFS_READ_FILE(name) \ int name (struct vfs_volume* UNUSED volume, struct proc* UNUSED proc, \ struct reschedule_ctx* UNUSED rctx, const char* UNUSED path, uint8_t* UNUSED buffer, \ size_t UNUSED off, size_t UNUSED size) #define DEFINE_VFS_WRITE_FILE(name) \ int name (struct vfs_volume* UNUSED volume, struct proc* UNUSED proc, \ struct reschedule_ctx* UNUSED rctx, const char* UNUSED path, uint8_t* UNUSED buffer, \ size_t UNUSED off, size_t UNUSED size, uint32_t UNUSED flags) #define DEFINE_VFS_READ_DIR_ENTRY(name) \ int name (struct vfs_volume* UNUSED volume, struct proc* UNUSED proc, \ struct reschedule_ctx* UNUSED rctx, const char* UNUSED path, \ struct dir_entry* UNUSED entry, size_t UNUSED entry_num) #define DEFINE_VFS_CREATE_FILE(name) \ int name (struct vfs_volume* UNUSED volume, struct proc* UNUSED proc, \ struct reschedule_ctx* UNUSED rctx, const char* UNUSED path) #define DEFINE_VFS_CREATE_DIR(name) \ int name (struct vfs_volume* UNUSED volume, struct proc* UNUSED proc, \ struct reschedule_ctx* UNUSED rctx, const char* UNUSED path) #define DEFINE_VFS_REMOVE(name) \ int name (struct vfs_volume* UNUSED volume, struct proc* UNUSED proc, \ struct reschedule_ctx* UNUSED rctx, const char* UNUSED path) #endif // _KERNEL_FS_DEF_VFS_OP_H