diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-08 12:22:55 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-08 12:24:05 +0100 |
commit | eda086699287dcd8f6f858a5d3c0a43009dd9e59 (patch) | |
tree | c3a125d429f5602490d9fa140610f10d36d2ab2b /Kernel/Process.h | |
parent | 0b5d5fc3c955baf3029286f2410005d652f9dc2d (diff) | |
download | serenity-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.h | 4 |
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&); |