From 3341e7a3a184b5bea17f0f678b40bc51c92d72a4 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 9 Mar 2015 17:04:04 +0100 Subject: Partial implement VFS pager (enough for ISO9660!) Also add some debugging facilities (especially stack trace). --- src/kernel/user/ipc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel/user/ipc.c') diff --git a/src/kernel/user/ipc.c b/src/kernel/user/ipc.c index ff4d5c8..a8362ea 100644 --- a/src/kernel/user/ipc.c +++ b/src/kernel/user/ipc.c @@ -15,7 +15,7 @@ static int channel_poll(fs_handle_t *c, void** out_wait_obj); static bool channel_open(fs_node_ptr c, int mode); static bool channel_stat(fs_node_ptr c, stat_t *st); static void channel_close(fs_handle_t *c); -static void channel_dispose(fs_node_ptr c); +static void channel_dispose(fs_node_t *c); static fs_node_ops_t channel_ops = { .read = channel_read, @@ -214,8 +214,8 @@ void channel_close(fs_handle_t *ch) { // do nothing } -void channel_dispose(fs_node_ptr ch) { - channel_t *c = (channel_t*)ch; +void channel_dispose(fs_node_t *n) { + channel_t *c = (channel_t*)n->data; mutex_lock(&c->lock); -- cgit v1.2.3