mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
Kernel: Use Userspace<T> for the shbuf_get syscall
This commit is contained in:
parent
e073f2b59e
commit
c8ae244ab8
Notes:
sideshowbarker
2024-07-19 04:04:50 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/c8ae244ab8c Pull-request: https://github.com/SerenityOS/serenity/pull/3062 Reviewed-by: https://github.com/awesomekling
|
@ -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);
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue