os/sysroot/usr/include/ipc/vfs.h

30 lines
434 B
C
Raw Normal View History

#ifndef IPC_VFS_H
#define IPC_VFS_H
typedef enum {
2019-06-29 09:13:25 -05:00
VFS_OPEN,
2019-08-28 20:32:14 -05:00
VFS_PUTS,
VFS_GETS,
2019-06-29 09:13:25 -05:00
VFS_CLOSE,
VFS_REGISTER_FS,
VFS_MOUNT,
2019-09-10 19:15:02 -05:00
VFS_UMOUNT,
VFS_SEEK
} vfs_message_type;
typedef struct {
char flags;
vfs_message_type type;
uint8_t id;
char mode[10];
uint32_t fd;
uint32_t pos;
int data;
char in_progress;
uint32_t orig_mbox;
void* fs_data;
char path[4096];
} __attribute__((packed)) vfs_message;
#endif