Files
mop3/kernel/fs/def_vfs_op.h
kamkow1 7091b128df
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 35s
Build documentation / build-and-deploy (push) Successful in 29s
Implement volume unmounting, collecting VFS volume info, usb Add eject command
2026-04-07 21:17:49 +02:00

48 lines
2.9 KiB
C

#ifndef _KERNEL_FS_DEF_VFS_OP_H
#define _KERNEL_FS_DEF_VFS_OP_H
#include <aux/compiler.h>
#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_UNMOUNT(name) int name (struct vfs_volume* UNUSED volume)
#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