From 0c710141bbb9bd62617d981a3dbaed1b8775fded Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 10 Mar 2015 16:28:38 +0100 Subject: Add simple shared memory facility to IPC (no syscall yet) --- src/kernel/dev/vesa.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'src/kernel/dev') diff --git a/src/kernel/dev/vesa.c b/src/kernel/dev/vesa.c index 2a7b876..645a649 100644 --- a/src/kernel/dev/vesa.c +++ b/src/kernel/dev/vesa.c @@ -215,8 +215,6 @@ typedef struct { // ---- VESA code bool vesa_open(fs_node_ptr n, int mode); -size_t vesa_read(fs_handle_t *f, size_t offset, size_t len, char* buf); -size_t vesa_write(fs_handle_t *f, size_t offset, size_t len, const char* buf); void vesa_close(fs_handle_t *f); int vesa_ioctl(fs_node_ptr n, int command, void* data); bool vesa_stat(fs_node_ptr n, stat_t *st); @@ -227,8 +225,8 @@ bool vesa_set_mode(vesa_driver_t *d, int n); fs_node_ops_t vesa_fs_ops = { .open = vesa_open, - .read = vesa_read, - .write = vesa_write, + .read = fs_read_from_pager, + .write = fs_write_to_pager, .close = vesa_close, .ioctl = vesa_ioctl, .stat = vesa_stat, @@ -363,18 +361,6 @@ bool vesa_open(fs_node_ptr n, int mode) { return true; } -size_t vesa_read(fs_handle_t *f, size_t offset, size_t len, char* buf) { - vesa_driver_t *d = (vesa_driver_t*)f->node->data; - - return pager_read(d->pager, offset, len, buf); -} - -size_t vesa_write(fs_handle_t *f, size_t offset, size_t len, const char* buf) { - vesa_driver_t *d = (vesa_driver_t*)f->node->data; - - return pager_write(d->pager, offset, len, buf); -} - void vesa_close(fs_handle_t *f) { // nothing to do } -- cgit v1.2.3