1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

Kernel+LibC: Make all SharedBuffers purgeable (default: non-volatile)

This patch makes SharedBuffer use a PurgeableVMObject as its underlying
memory object.

A new syscall is added to control the volatile flag of a SharedBuffer.
This commit is contained in:
Andreas Kling 2019-12-09 20:06:47 +01:00
parent 65229a4082
commit 0317ca5ccc
6 changed files with 50 additions and 5 deletions

View file

@ -146,7 +146,8 @@ typedef u32 socklen_t;
__ENUMERATE_SYSCALL(set_thread_name) \
__ENUMERATE_SYSCALL(get_thread_name) \
__ENUMERATE_SYSCALL(madvise) \
__ENUMERATE_SYSCALL(purge)
__ENUMERATE_SYSCALL(purge) \
__ENUMERATE_SYSCALL(set_shared_buffer_volatile)
namespace Syscall {