mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
SharedBuffer: Split the creation and share steps
This allows us to seal a buffer *before* anyone else has access to it (well, ok, the creating process still does, but you can't win them all). It also means that a SharedBuffer can be shared with multiple clients: all you need is to have access to it to share it on again.
This commit is contained in:
parent
f60d7e5d1f
commit
b907608e46
Notes:
sideshowbarker
2024-07-19 13:11:27 +09:00
Author: https://github.com/rburchell
Commit: b907608e46
Pull-request: https://github.com/SerenityOS/serenity/pull/335
12 changed files with 58 additions and 22 deletions
|
@ -197,7 +197,8 @@ public:
|
|||
int sys$rename(const char* oldpath, const char* newpath);
|
||||
int sys$systrace(pid_t);
|
||||
int sys$mknod(const char* pathname, mode_t, dev_t);
|
||||
int sys$create_shared_buffer(pid_t peer_pid, int, void** buffer);
|
||||
int sys$create_shared_buffer(int, void** buffer);
|
||||
int sys$share_buffer_with(int, pid_t peer_pid);
|
||||
void* sys$get_shared_buffer(int shared_buffer_id);
|
||||
int sys$release_shared_buffer(int shared_buffer_id);
|
||||
int sys$seal_shared_buffer(int shared_buffer_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue