1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 08:35:09 +00:00

Kernel: Remove sys$shbuf_seal() and userland wrappers

There are no remaining users of this syscall so let it go. :^)
This commit is contained in:
Andreas Kling 2021-01-17 00:18:01 +01:00
parent 5522e8f59d
commit 05dbfe9ab6
13 changed files with 0 additions and 68 deletions

View file

@ -185,17 +185,4 @@ void SharedBuffer::destroy_if_unused()
}
}
void SharedBuffer::seal()
{
LOCKER(shared_buffers().lock());
m_writable = false;
for (auto& ref : m_refs) {
// TODO: Region needs to be RefCounted!
if (auto* region = ref.region.unsafe_ptr()) {
region->set_writable(false);
region->remap();
}
}
}
}