Changeset b5e68c8 in mainline for contrib/arch/uspace/srv/vfs/vfs.adl
- Timestamp:
- 2011-05-12T16:49:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36787d7
- Parents:
- e80329d6 (diff), 750636a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/arch/uspace/srv/vfs/vfs.adl
re80329d6 rb5e68c8 1 1 interface vfs extends service { 2 2 /* Register a filesystem driver */ 3 ipcarg_t register(in_copy string name);3 sysarg_t register(in_copy string name); 4 4 5 5 /* Mount filesystem */ 6 ipcarg_t mount(in ipcarg_t device, in ipcarg_t flags, in_copy string point, in_copy string opts, in_copy string fs);6 sysarg_t mount(in sysarg_t device, in sysarg_t flags, in_copy string point, in_copy string opts, in_copy string fs); 7 7 8 8 /* Open file */ 9 ipcarg_t open(in ipcarg_t lflag, in ipcarg_t oflag, in ipcarg_t mode, in_copy string path, out ipcarg_t fd);9 sysarg_t open(in sysarg_t lflag, in sysarg_t oflag, in sysarg_t mode, in_copy string path, out sysarg_t fd); 10 10 11 11 /* Open file using node */ 12 ipcarg_t open_node(in ipcarg_t fs_handle, in ipcarg_t dev_handle, in ipcarg_t index, in ipcarg_t oflag, out ipcarg_t fd);12 sysarg_t open_node(in sysarg_t fs_handle, in sysarg_t dev_handle, in sysarg_t index, in sysarg_t oflag, out sysarg_t fd); 13 13 14 14 /* Read data from file */ 15 ipcarg_t read(in ipcarg_t fd, out_copy stream data);15 sysarg_t read(in sysarg_t fd, out_copy stream data); 16 16 17 17 /* Write data to file */ 18 ipcarg_t write(in ipcarg_t fd, in_copy stream data);18 sysarg_t write(in sysarg_t fd, in_copy stream data); 19 19 20 20 /* Seek in file */ 21 ipcarg_t seek(in ipcarg_t fd, in ipcarg_t offset, in ipcarg_t whence);21 sysarg_t seek(in sysarg_t fd, in sysarg_t offset, in sysarg_t whence); 22 22 23 23 /* Truncate file */ 24 ipcarg_t truncate(in ipcarg_t fd, in ipcarg_t size);24 sysarg_t truncate(in sysarg_t fd, in sysarg_t size); 25 25 26 26 /* Get file metadata */ 27 ipcarg_t fstat(in ipcarg_t fd, out_copy stream stat);27 sysarg_t fstat(in sysarg_t fd, out_copy stream stat); 28 28 29 29 /* Get directory entry metadata */ 30 ipcarg_t stat(in_copy string path, out_copy stream stat);30 sysarg_t stat(in_copy string path, out_copy stream stat); 31 31 32 32 /* Create directory */ 33 ipcarg_t mkdir(in ipcarg_t mode, in_copy string path);33 sysarg_t mkdir(in sysarg_t mode, in_copy string path); 34 34 35 35 /* Delete directory entry */ 36 ipcarg_t unlink(in ipcarg_t lflag, in_copy string path);36 sysarg_t unlink(in sysarg_t lflag, in_copy string path); 37 37 38 38 /* Rename directory entry */ 39 ipcarg_t rename(in_copy string old, in_copy string new);39 sysarg_t rename(in_copy string old, in_copy string new); 40 40 41 41 /* Flush file buffers */ 42 ipcarg_t sync(in ipcarg_t fd);42 sysarg_t sync(in sysarg_t fd); 43 43 44 44 /* In-protocol status value */ 45 ipcarg_t ipc_m_ping(void);45 sysarg_t ipc_m_ping(void); 46 46 47 47 /* Close connection */ 48 ipcarg_t ipc_m_phone_hungup(void);48 sysarg_t ipc_m_phone_hungup(void); 49 49 protocol: 50 50 [vfs.bp] … … 53 53 interface fs extends service { 54 54 /* Notify filesystem that it was mounted */ 55 ipcarg_t mounted(in ipcarg_t dev_handle, in_copy string opts);55 sysarg_t mounted(in sysarg_t dev_handle, in_copy string opts); 56 56 57 57 /* Mount filesystem */ 58 ipcarg_t mount(in ipcarg_t device, in ipcarg_t flags, in_copy string point, in_copy string opts, ...);58 sysarg_t mount(in sysarg_t device, in sysarg_t flags, in_copy string point, in_copy string opts, ...); 59 59 60 60 /* Open file by node */ 61 ipcarg_t open_node(in ipcarg_t lflag, in ipcarg_t oflag, in ipcarg_t mode, ...);61 sysarg_t open_node(in sysarg_t lflag, in sysarg_t oflag, in sysarg_t mode, ...); 62 62 63 63 /* Lookup file */ 64 ipcarg_t lookup(in ipcarg_t lflag, in ipcarg_t oflag, in ipcarg_t mode, ...);64 sysarg_t lookup(in sysarg_t lflag, in sysarg_t oflag, in sysarg_t mode, ...); 65 65 66 66 /* Read data from file */ 67 ipcarg_t read(in ipcarg_t dev_handle, in ipcarg_t fs_index, in ipcarg_t offset, out_copy stream data);67 sysarg_t read(in sysarg_t dev_handle, in sysarg_t fs_index, in sysarg_t offset, out_copy stream data); 68 68 69 69 /* Write data to file */ 70 ipcarg_t write(in ipcarg_t dev_handle, in ipcarg_t fs_index, in ipcarg_t offset, in_copy stream data);70 sysarg_t write(in sysarg_t dev_handle, in sysarg_t fs_index, in sysarg_t offset, in_copy stream data); 71 71 72 72 /* Truncate file */ 73 ipcarg_t truncate(in ipcarg_t dev_handle, in ipcarg_t fs_index, in ipcarg_t size);73 sysarg_t truncate(in sysarg_t dev_handle, in sysarg_t fs_index, in sysarg_t size); 74 74 75 75 /* Get directory entry metadata */ 76 ipcarg_t stat(in ipcarg_t dev_handle, in ipcarg_t fs_index, out_copy stream stat);76 sysarg_t stat(in sysarg_t dev_handle, in sysarg_t fs_index, out_copy stream stat); 77 77 78 78 /* Flush file buffers */ 79 ipcarg_t sync(in ipcarg_t dev_handle, in ipcarg_t fs_index);79 sysarg_t sync(in sysarg_t dev_handle, in sysarg_t fs_index); 80 80 81 81 /* Notify on file close */ 82 ipcarg_t close(in ipcarg_t dev_handle, in ipcarg_t fs_index);82 sysarg_t close(in sysarg_t dev_handle, in sysarg_t fs_index); 83 83 }; 84 84
Note:
See TracChangeset
for help on using the changeset viewer.