1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:18:12 +00:00

Kernel: Merge the shbuf_get_size() syscall into shbuf_get()

Add an extra out-parameter to shbuf_get() that receives the size of the
shared buffer. That way we don't need to make a separate syscall to
get the size, which we always did immediately after.
This commit is contained in:
Andreas Kling 2020-02-28 12:29:14 +01:00
parent a1514369d7
commit dcd619bd46
6 changed files with 13 additions and 36 deletions

View file

@ -276,10 +276,9 @@ public:
int sys$shbuf_create(int, void** buffer);
int sys$shbuf_allow_pid(int, pid_t peer_pid);
int sys$shbuf_allow_all(int);
void* sys$shbuf_get(int shbuf_id);
void* sys$shbuf_get(int shbuf_id, size_t* size);
int sys$shbuf_release(int shbuf_id);
int sys$shbuf_seal(int shbuf_id);
int sys$shbuf_get_size(int shbuf_id);
int sys$shbuf_set_volatile(int shbuf_id, bool);
int sys$halt();
int sys$reboot();