mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
Base: Add man pages for create_shared_buffer() and share_buffer_with()
This commit is contained in:
parent
d43c7d55f4
commit
eb18825fce
2 changed files with 47 additions and 0 deletions
24
Base/usr/share/man/man2/share_buffer_with.md
Normal file
24
Base/usr/share/man/man2/share_buffer_with.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
## Name
|
||||
|
||||
share\_buffer\_with - allow another process to map a shareable buffer
|
||||
|
||||
## Synopsis
|
||||
```**c++
|
||||
#include <SharedBuffer.h>
|
||||
|
||||
int share_buffer_with(int shared_buffer_id, pid_t peer_pid);
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Gives the process with PID `peer_pid` permission to map the shareable buffer with ID `shared_buffer_id`.
|
||||
|
||||
## Return value
|
||||
|
||||
On success, returns 0. Otherwise, returns -1 and `errno` is set.
|
||||
|
||||
## Errors
|
||||
|
||||
* `EINVAL`: `peer_pid` is invalid, or `shared_buffer_id` is not a valid ID.
|
||||
* `EPERM`: The calling process does not have access to the buffer with `shared_buffer_id`.
|
||||
* `ESRCH`: No process with PID `peer_pid` is found.
|
Loading…
Add table
Add a link
Reference in a new issue