diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-17 00:18:01 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-17 00:18:01 +0100 |
commit | 05dbfe9ab60becc862fd8f51a8be85795df20c31 (patch) | |
tree | 032da3b9662982dbbe22dab34465e25501c8dc1b /Userland/DevTools | |
parent | 5522e8f59d2a175fb6096f5143d659b742370dc2 (diff) | |
download | serenity-05dbfe9ab60becc862fd8f51a8be85795df20c31.zip |
Kernel: Remove sys$shbuf_seal() and userland wrappers
There are no remaining users of this syscall so let it go. :^)
Diffstat (limited to 'Userland/DevTools')
4 files changed, 0 insertions, 16 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/Emulator.cpp b/Userland/DevTools/UserspaceEmulator/Emulator.cpp index fa86c26417..b4a42a4320 100644 --- a/Userland/DevTools/UserspaceEmulator/Emulator.cpp +++ b/Userland/DevTools/UserspaceEmulator/Emulator.cpp @@ -393,8 +393,6 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3) return virt$shbuf_get(arg1, arg2); case SC_shbuf_release: return virt$shbuf_release(arg1); - case SC_shbuf_seal: - return virt$shbuf_seal(arg1); case SC_profiling_enable: return virt$profiling_enable(arg1); case SC_profiling_disable: @@ -604,13 +602,6 @@ int Emulator::virt$shbuf_release(int shbuf_id) return rc; } -int Emulator::virt$shbuf_seal(int shbuf_id) -{ - auto* region = m_mmu.shbuf_region(shbuf_id); - ASSERT(region); - return region->seal(); -} - int Emulator::virt$profiling_enable(pid_t pid) { return syscall(SC_profiling_enable, pid); diff --git a/Userland/DevTools/UserspaceEmulator/Emulator.h b/Userland/DevTools/UserspaceEmulator/Emulator.h index db3dd39cd1..dae845187f 100644 --- a/Userland/DevTools/UserspaceEmulator/Emulator.h +++ b/Userland/DevTools/UserspaceEmulator/Emulator.h @@ -95,7 +95,6 @@ private: int virt$shbuf_allow_pid(int, pid_t peer_pid); FlatPtr virt$shbuf_get(int shbuf_id, FlatPtr size); int virt$shbuf_release(int shbuf_id); - int virt$shbuf_seal(int shbuf_id); int virt$profiling_enable(pid_t); int virt$profiling_disable(pid_t); int virt$disown(pid_t); diff --git a/Userland/DevTools/UserspaceEmulator/SharedBufferRegion.cpp b/Userland/DevTools/UserspaceEmulator/SharedBufferRegion.cpp index a4c58e862a..537200c2b3 100644 --- a/Userland/DevTools/UserspaceEmulator/SharedBufferRegion.cpp +++ b/Userland/DevTools/UserspaceEmulator/SharedBufferRegion.cpp @@ -109,11 +109,6 @@ int SharedBufferRegion::allow_pid(pid_t pid) return syscall(SC_shbuf_allow_pid, m_shbuf_id, pid); } -int SharedBufferRegion::seal() -{ - return syscall(SC_shbuf_seal, m_shbuf_id); -} - int SharedBufferRegion::release() { return syscall(SC_shbuf_release, m_shbuf_id); diff --git a/Userland/DevTools/UserspaceEmulator/SharedBufferRegion.h b/Userland/DevTools/UserspaceEmulator/SharedBufferRegion.h index c3e0df87f9..58636f2643 100644 --- a/Userland/DevTools/UserspaceEmulator/SharedBufferRegion.h +++ b/Userland/DevTools/UserspaceEmulator/SharedBufferRegion.h @@ -52,7 +52,6 @@ public: int shbuf_id() const { return m_shbuf_id; } int allow_pid(pid_t); - int seal(); int release(); private: |