summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-08 12:22:55 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-08 12:24:05 +0100
commiteda086699287dcd8f6f858a5d3c0a43009dd9e59 (patch)
treec3a125d429f5602490d9fa140610f10d36d2ab2b /Kernel/Process.h
parent0b5d5fc3c955baf3029286f2410005d652f9dc2d (diff)
downloadserenity-eda086699287dcd8f6f858a5d3c0a43009dd9e59.zip
Add a C++ helper class for working with shared buffers.
This is a bit more comfortable than passing the shared buffer ID manually everywhere and keeping track of size etc.
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 1130ded9c0..6c9a17ae20 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -232,9 +232,11 @@ public:
int sys$connect(int sockfd, const sockaddr*, socklen_t);
int sys$restore_signal_mask(dword mask);
- int sys$create_shared_buffer(pid_t peer_pid, size_t, void** buffer);
+ int sys$create_shared_buffer(pid_t peer_pid, int, void** buffer);
void* sys$get_shared_buffer(int shared_buffer_id);
int sys$release_shared_buffer(int shared_buffer_id);
+ int sys$seal_shared_buffer(int shared_buffer_id);
+ int sys$get_shared_buffer_size(int shared_buffer_id);
KResult wait_for_connect(Socket&);