mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
Kernel: Remove sys$shbuf_set_volatile() and userland wrappers
There are no remaining users of this syscall so let's remove it! :^)
This commit is contained in:
parent
c71807a3fc
commit
de31e82f97
9 changed files with 0 additions and 77 deletions
|
@ -397,8 +397,6 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
|
|||
return virt$shbuf_release(arg1);
|
||||
case SC_shbuf_seal:
|
||||
return virt$shbuf_seal(arg1);
|
||||
case SC_shbuf_set_volatile:
|
||||
return virt$shbuf_set_volatile(arg1, arg2);
|
||||
case SC_profiling_enable:
|
||||
return virt$profiling_enable(arg1);
|
||||
case SC_profiling_disable:
|
||||
|
@ -622,13 +620,6 @@ int Emulator::virt$shbuf_seal(int shbuf_id)
|
|||
return region->seal();
|
||||
}
|
||||
|
||||
int Emulator::virt$shbuf_set_volatile(int shbuf_id, bool is_volatile)
|
||||
{
|
||||
auto* region = m_mmu.shbuf_region(shbuf_id);
|
||||
ASSERT(region);
|
||||
return region->set_volatile(is_volatile);
|
||||
}
|
||||
|
||||
int Emulator::virt$profiling_enable(pid_t pid)
|
||||
{
|
||||
return syscall(SC_profiling_enable, pid);
|
||||
|
|
|
@ -97,7 +97,6 @@ private:
|
|||
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$shbuf_set_volatile(int shbuf_id, bool);
|
||||
int virt$profiling_enable(pid_t);
|
||||
int virt$profiling_disable(pid_t);
|
||||
int virt$disown(pid_t);
|
||||
|
|
|
@ -124,9 +124,4 @@ int SharedBufferRegion::release()
|
|||
return syscall(SC_shbuf_release, m_shbuf_id);
|
||||
}
|
||||
|
||||
int SharedBufferRegion::set_volatile(bool is_volatile)
|
||||
{
|
||||
return syscall(SC_shbuf_set_volatile, m_shbuf_id, is_volatile);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -55,7 +55,6 @@ public:
|
|||
int allow_pid(pid_t);
|
||||
int seal();
|
||||
int release();
|
||||
int set_volatile(bool);
|
||||
|
||||
private:
|
||||
SharedBufferRegion(u32 base, u32 size, int shbuf_id, u8* shbuf_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue