aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/process.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/include/process.h')
-rw-r--r--src/kernel/include/process.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/kernel/include/process.h b/src/kernel/include/process.h
index a6ca1e9..d1914ef 100644
--- a/src/kernel/include/process.h
+++ b/src/kernel/include/process.h
@@ -1,8 +1,5 @@
#pragma once
-// Things described in this file are essentially a public interface
-// All implementation details are hidden in process.c
-
// A process is a recipient for user code, as well as for mounting File Systems,
// which allow access to features of the system.
@@ -14,8 +11,17 @@
struct process;
typedef struct process process_t;
-process_t *new_process(entry_t entry, void* data);
+process_t *current_process();
+
+process_t *new_process(process_t *parent);
+void delete_process(process_t *p);
+
+void start_process(process_t *p, entry_t entry, void* data);
+
+bool proc_add_fs(process_t *p, fs_t *fs, const char* name);
+fs_t *proc_find_fs(process_t *p, const char* name);
bool mmap(process_t *proc, void* addr, size_t size, int type);
+bool mmap_file(process_t *proc, fs_handle_t *h, void* addr, size_t size, int mode);
/* vim: set ts=4 sw=4 tw=0 noet :*/