From 33b5bddebf6d38922c32c17aca481b9f031618b0 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 4 Sep 2021 15:53:37 +0200 Subject: shitty handle docs --- docs/handles.org | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docs/handles.org diff --git a/docs/handles.org b/docs/handles.org new file mode 100644 index 0000000..facb320 --- /dev/null +++ b/docs/handles.org @@ -0,0 +1,20 @@ +#+title: Handles + +* filesystem / access function front handle + See vfs.org. + can be used in: mount() + returned by fs_create(). there could also be functions that created a front handle from a subset of the current vfs. + +* filesystem / access function back handle + can be used in: fs_wait() + returned by fs_create() + +* file handle + When an access function accepts a path, it returns a number uniquely identifying that open file. The kernel then wraps it in a file handle which gets passed back to the original caller. + can be used in: read(), write(), maybe there could be a syscall allowing any other custom operation + returned by open() + +* shared operations + pass to parent / wait for handle from child + close + -- cgit v1.2.3