mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 13:17:36 +00:00
Kernel: Use Userspace<T> for the shbuf_get syscall
This commit is contained in:
parent
e073f2b59e
commit
c8ae244ab8
2 changed files with 2 additions and 2 deletions
|
@ -315,7 +315,7 @@ public:
|
||||||
int sys$shbuf_create(int, void** buffer);
|
int sys$shbuf_create(int, void** buffer);
|
||||||
int sys$shbuf_allow_pid(int, pid_t peer_pid);
|
int sys$shbuf_allow_pid(int, pid_t peer_pid);
|
||||||
int sys$shbuf_allow_all(int);
|
int sys$shbuf_allow_all(int);
|
||||||
void* sys$shbuf_get(int shbuf_id, size_t* size);
|
void* sys$shbuf_get(int shbuf_id, Userspace<size_t*> size);
|
||||||
int sys$shbuf_release(int shbuf_id);
|
int sys$shbuf_release(int shbuf_id);
|
||||||
int sys$shbuf_seal(int shbuf_id);
|
int sys$shbuf_seal(int shbuf_id);
|
||||||
int sys$shbuf_set_volatile(int shbuf_id, bool);
|
int sys$shbuf_set_volatile(int shbuf_id, bool);
|
||||||
|
|
|
@ -120,7 +120,7 @@ int Process::sys$shbuf_release(int shbuf_id)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void* Process::sys$shbuf_get(int shbuf_id, size_t* user_size)
|
void* Process::sys$shbuf_get(int shbuf_id, Userspace<size_t*> user_size)
|
||||||
{
|
{
|
||||||
REQUIRE_PROMISE(shared_buffer);
|
REQUIRE_PROMISE(shared_buffer);
|
||||||
if (user_size && !validate_write_typed(user_size))
|
if (user_size && !validate_write_typed(user_size))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue