Simple file IO with the ioctl syscall
This commit is contained in:
@ -43,8 +43,10 @@ typedef struct VfsObj {
|
||||
size_t extrasize;
|
||||
struct VfsMountPoint *vmp;
|
||||
char path[VFS_PATH_MAX];
|
||||
int32_t flags;
|
||||
int32_t (*read)(struct VfsObj *vobj, uint8_t *const buffer, size_t n, size_t off);
|
||||
int32_t (*stat)(struct VfsObj *vobj, struct VfsStat *stat);
|
||||
int32_t (*write)(struct VfsObj *vobj, const uint8_t *const buffer, size_t n, size_t off);
|
||||
void (*cleanup)(struct VfsObj *vobj);
|
||||
} VfsObj;
|
||||
|
||||
|
Reference in New Issue
Block a user