summaryrefslogtreecommitdiff
path: root/kernel/fs/procfs.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-12-11 14:56:58 +0100
committerAnton Kling <anton@kling.gg>2024-12-12 15:48:19 +0100
commitbc828883c51c3c0f35872019f4db632e4ce82dc5 (patch)
treec4217493e69e4e8078aa403ca23f71fdf598f826 /kernel/fs/procfs.h
parentb343b0dae5aa51b5bd9b195936358341a943b3b2 (diff)
procfs: Add a procfs
Userland can now interface with processes by writing/reading from `/proc/<pid>/<entry>` It can send signals, for example `echo 15 > /proc/1/signal`
Diffstat (limited to 'kernel/fs/procfs.h')
-rw-r--r--kernel/fs/procfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/fs/procfs.h b/kernel/fs/procfs.h
new file mode 100644
index 0000000..8715789
--- /dev/null
+++ b/kernel/fs/procfs.h
@@ -0,0 +1,3 @@
+#include <fs/vfs.h>
+
+vfs_inode_t *procfs_mount(void);