From cbadacbb881200b601c7b53b29aa0c1b78747692 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Tue, 23 Mar 2010 16:34:36 +0100 Subject: More work on IPC --- src/kernel/ipc/shm.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/kernel/ipc/shm.h') diff --git a/src/kernel/ipc/shm.h b/src/kernel/ipc/shm.h index b409955..895a619 100644 --- a/src/kernel/ipc/shm.h +++ b/src/kernel/ipc/shm.h @@ -16,9 +16,12 @@ void shmseg_unmap(struct segment_map*); void shmseg_delete(struct segment *seg); int shmseg_handleFault(struct segment_map *map, size_t addr, int write); + //find a shared memory segment in current address space by its offset +struct segment_map* shmseg_getByOff(struct process* pr, size_t offset); + //Shared memory syscalls -void shm_create(size_t offset, size_t len); -void shm_delete(size_t offset); +int shm_create(size_t offset, size_t len); +int shm_delete(size_t offset); #endif -- cgit v1.2.3