| } __attribute__((__packed__)); |
| struct rmtfs_mem *rmtfs_mem_open(void); |
| void rmtfs_mem_close(struct rmtfs_mem *rmem); |
| int64_t rmtfs_mem_alloc(struct rmtfs_mem *rmem, size_t size); |
| void rmtfs_mem_free(struct rmtfs_mem *rmem); |
| ssize_t rmtfs_mem_read(struct rmtfs_mem *rmem, unsigned long phys_address, void *buf, ssize_t len); |
| ssize_t rmtfs_mem_write(struct rmtfs_mem *rmem, unsigned long phys_address, const void *buf, ssize_t len); |
| int storage_init(const char *storage_root, bool read_only, bool use_partitions); |
| struct rmtfd *storage_open(unsigned node, const char *path); |
| struct rmtfd *storage_get(unsigned node, int caller_id); |
| void storage_close(struct rmtfd *rmtfd); |
| int storage_get_caller_id(const struct rmtfd *rmtfd); |
| int storage_get_error(const struct rmtfd *rmtfd); |
| ssize_t storage_pread(const struct rmtfd *rmtfd, void *buf, size_t nbyte, off_t offset); |
| ssize_t storage_pwrite(struct rmtfd *rmtfd, const void *buf, size_t nbyte, off_t offset); |
| int storage_sync(struct rmtfd *rmtfd); |