Kernel: Use Userspace<T> for the shbuf_get syscall

This commit is contained in:
Brian Gianforcaro 2020-08-09 15:30:11 -07:00 committed by Andreas Kling
parent e073f2b59e
commit c8ae244ab8
Notes: sideshowbarker 2024-07-19 04:04:50 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -315,7 +315,7 @@ 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, size_t* size);
void* sys$shbuf_get(int shbuf_id, Userspace<size_t*> size);
int sys$shbuf_release(int shbuf_id);
int sys$shbuf_seal(int shbuf_id);
int sys$shbuf_set_volatile(int shbuf_id, bool);

View file

@ -120,7 +120,7 @@ int Process::sys$shbuf_release(int shbuf_id)
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);
if (user_size && !validate_write_typed(user_size))