aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/ipc.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-10 16:28:38 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-10 16:28:38 +0100
commit0c710141bbb9bd62617d981a3dbaed1b8775fded (patch)
tree0094294fc5b6182bada5db8e5a64cd3a52e872e2 /src/kernel/include/ipc.h
parent48c1c4dcc449d05e9950a861e165f456e0d583a1 (diff)
downloadkogata-0c710141bbb9bd62617d981a3dbaed1b8775fded.tar.gz
kogata-0c710141bbb9bd62617d981a3dbaed1b8775fded.zip
Add simple shared memory facility to IPC (no syscall yet)
Diffstat (limited to 'src/kernel/include/ipc.h')
-rw-r--r--src/kernel/include/ipc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/include/ipc.h b/src/kernel/include/ipc.h
index 05d14a8..4f8573c 100644
--- a/src/kernel/include/ipc.h
+++ b/src/kernel/include/ipc.h
@@ -14,6 +14,10 @@ typedef struct {
fs_handle_pair_t make_channel(bool blocking);
+// ---- shared memory regions
+
+fs_handle_t* make_shm(size_t size);
+
// ---- Tokens for sharing file descriptors between processes
#define TOKEN_LIFETIME 1500000 // in usecs