lib: fs: implement memory-mapped file i/o
This commit is contained in:
@@ -30,6 +30,12 @@ extern enum fs_status fs_context_mount_filesystem(
|
||||
enum fs_mount_flags flags);
|
||||
extern enum fs_status fs_context_unmount_filesystem(struct fs_context *ctx);
|
||||
|
||||
extern void fs_context_set_channel(
|
||||
struct fs_context *ctx,
|
||||
kern_handle_t channel);
|
||||
extern kern_handle_t fs_context_get_vm_controller(const struct fs_context *ctx);
|
||||
extern enum fs_status fs_context_handle_request(struct fs_context *ctx);
|
||||
|
||||
extern struct fs_file *fs_context_open_file(
|
||||
struct fs_context *ctx,
|
||||
unsigned long id);
|
||||
|
||||
@@ -27,9 +27,14 @@ extern enum fs_status fs_file_read(
|
||||
struct fs_file *f,
|
||||
struct xpc_buffer *buf,
|
||||
size_t count);
|
||||
extern enum fs_status fs_file_write(
|
||||
extern enum fs_status fs_file_read_at(
|
||||
struct fs_file *f,
|
||||
struct xpc_buffer *buf,
|
||||
off_t offset,
|
||||
size_t count);
|
||||
extern enum fs_status fs_file_write(
|
||||
struct fs_file *f,
|
||||
const struct xpc_buffer *buf,
|
||||
size_t count);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user