aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/process.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-12 15:35:11 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-12 15:35:11 +0100
commit2432a437a715f7220697d13aae13e97087709842 (patch)
tree649c10b6765e02045f5b9d00dda5da13c9a07bd2 /src/kernel/include/process.h
parent30516ae9a217982ec4027cef4b7525b2a74fe3c7 (diff)
downloadkogata-2432a437a715f7220697d13aae13e97087709842.tar.gz
kogata-2432a437a715f7220697d13aae13e97087709842.zip
DOES NOT COMPILE | VFS structure change (VFS centralises more stuff)
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 :*/