From ce00d1677d7a419b427e7f11963eee982a55a231 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 4 Aug 2022 23:06:57 +0200 Subject: do some simple TODOs, organize the rest; general code maintainance --- src/kernel/arch/amd64/driver/fsroot.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/kernel/arch/amd64/driver/fsroot.c') diff --git a/src/kernel/arch/amd64/driver/fsroot.c b/src/kernel/arch/amd64/driver/fsroot.c index 512b7da..41fe136 100644 --- a/src/kernel/arch/amd64/driver/fsroot.c +++ b/src/kernel/arch/amd64/driver/fsroot.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include @@ -22,17 +23,6 @@ static bool exacteq(struct vfs_request *req, const char *str) { return req->input.len == len && !memcmp(req->input.buf_kern, str, len); } -static int req_readcopy(struct vfs_request *req, const void *buf, size_t len) { - assert(req->type == VFSOP_READ); - fs_normslice(&req->offset, &req->output.len, len, false); - virt_cpy_to( - req->caller->pages, req->output.buf, - buf + req->offset, req->output.len); - /* read errors are ignored. TODO write docs */ - return req->output.len; -} - - static int handle(struct vfs_request *req) { assert(req->caller); int id = (int)(long __force)req->id; -- cgit v1.2.3