Changes in uspace/lib/fs/libfs.h [5b0cf63:23c8acd9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fs/libfs.h
r5b0cf63 r23c8acd9 43 43 44 44 typedef struct { 45 errno_t (*fsprobe)(service_id_t, vfs_fs_probe_info_t *);46 errno_t (*mounted)(service_id_t, const char *, fs_index_t *, aoff64_t *);47 errno_t (*unmounted)(service_id_t);48 errno_t (*read)(service_id_t, fs_index_t, aoff64_t, size_t *);49 errno_t (*write)(service_id_t, fs_index_t, aoff64_t, size_t *,45 int (* fsprobe)(service_id_t, vfs_fs_probe_info_t *); 46 int (* mounted)(service_id_t, const char *, fs_index_t *, aoff64_t *); 47 int (* unmounted)(service_id_t); 48 int (* read)(service_id_t, fs_index_t, aoff64_t, size_t *); 49 int (* write)(service_id_t, fs_index_t, aoff64_t, size_t *, 50 50 aoff64_t *); 51 errno_t (*truncate)(service_id_t, fs_index_t, aoff64_t);52 errno_t (*close)(service_id_t, fs_index_t);53 errno_t (*destroy)(service_id_t, fs_index_t);54 errno_t (*sync)(service_id_t, fs_index_t);51 int (* truncate)(service_id_t, fs_index_t, aoff64_t); 52 int (* close)(service_id_t, fs_index_t); 53 int (* destroy)(service_id_t, fs_index_t); 54 int (* sync)(service_id_t, fs_index_t); 55 55 } vfs_out_ops_t; 56 56 … … 65 65 * argument holds the output argument. 66 66 */ 67 errno_t (*root_get)(fs_node_t **, service_id_t);68 errno_t (*match)(fs_node_t **, fs_node_t *, const char *);69 errno_t (*node_get)(fs_node_t **, service_id_t, fs_index_t);70 errno_t (*node_open)(fs_node_t *);71 errno_t (*node_put)(fs_node_t *);72 errno_t (*create)(fs_node_t **, service_id_t, int);73 errno_t (*destroy)(fs_node_t *);74 errno_t (*link)(fs_node_t *, fs_node_t *, const char *);75 errno_t (*unlink)(fs_node_t *, fs_node_t *, const char *);76 errno_t (*has_children)(bool *, fs_node_t *);67 int (* root_get)(fs_node_t **, service_id_t); 68 int (* match)(fs_node_t **, fs_node_t *, const char *); 69 int (* node_get)(fs_node_t **, service_id_t, fs_index_t); 70 int (* node_open)(fs_node_t *); 71 int (* node_put)(fs_node_t *); 72 int (* create)(fs_node_t **, service_id_t, int); 73 int (* destroy)(fs_node_t *); 74 int (* link)(fs_node_t *, fs_node_t *, const char *); 75 int (* unlink)(fs_node_t *, fs_node_t *, const char *); 76 int (* has_children)(bool *, fs_node_t *); 77 77 /* 78 78 * The second set of methods are usually mere getters that do not 79 79 * return an integer error code. 80 80 */ 81 fs_index_t (* index_get)(fs_node_t *);82 aoff64_t (* size_get)(fs_node_t *);83 unsigned int (* lnkcnt_get)(fs_node_t *);84 bool (* is_directory)(fs_node_t *);85 bool (* is_file)(fs_node_t *);86 service_id_t (* service_get)(fs_node_t *);87 errno_t (*size_block)(service_id_t, uint32_t *);88 errno_t (*total_block_count)(service_id_t, uint64_t *);89 errno_t (*free_block_count)(service_id_t, uint64_t *);81 fs_index_t (* index_get)(fs_node_t *); 82 aoff64_t (* size_get)(fs_node_t *); 83 unsigned int (* lnkcnt_get)(fs_node_t *); 84 bool (* is_directory)(fs_node_t *); 85 bool (* is_file)(fs_node_t *); 86 service_id_t (* service_get)(fs_node_t *); 87 int (* size_block)(service_id_t, uint32_t *); 88 int (* total_block_count)(service_id_t, uint64_t *); 89 int (* free_block_count)(service_id_t, uint64_t *); 90 90 } libfs_ops_t; 91 91 … … 95 95 } fs_reg_t; 96 96 97 extern errno_t fs_register(async_sess_t *, vfs_info_t *, vfs_out_ops_t *,97 extern int fs_register(async_sess_t *, vfs_info_t *, vfs_out_ops_t *, 98 98 libfs_ops_t *); 99 99 100 100 extern void fs_node_initialize(fs_node_t *); 101 101 102 extern errno_t fs_instance_create(service_id_t, void *);103 extern errno_t fs_instance_get(service_id_t, void **);104 extern errno_t fs_instance_destroy(service_id_t);102 extern int fs_instance_create(service_id_t, void *); 103 extern int fs_instance_get(service_id_t, void **); 104 extern int fs_instance_destroy(service_id_t); 105 105 106 106 #endif
Note:
See TracChangeset
for help on using the changeset viewer.