summaryrefslogtreecommitdiff
path: root/docs/handles.org
diff options
context:
space:
mode:
authordzwdz2021-09-04 15:53:37 +0200
committerdzwdz2021-09-04 15:53:37 +0200
commit33b5bddebf6d38922c32c17aca481b9f031618b0 (patch)
tree470a1c006a6e95a124682b78865696d39926faef /docs/handles.org
parent57ce367309de9ac1b1938202156eac554420bb2a (diff)
shitty handle docs
Diffstat (limited to 'docs/handles.org')
-rw-r--r--docs/handles.org20
1 files changed, 20 insertions, 0 deletions
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
+