mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47: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
|
@ -188,23 +188,4 @@ void SharedBuffer::seal()
|
|||
#endif
|
||||
}
|
||||
|
||||
void SharedBuffer::set_volatile()
|
||||
{
|
||||
#if defined(__serenity__)
|
||||
u32 rc = syscall(SC_shbuf_set_volatile, m_shbuf_id, true);
|
||||
ASSERT(rc == 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool SharedBuffer::set_nonvolatile()
|
||||
{
|
||||
#if defined(__serenity__)
|
||||
u32 rc = syscall(SC_shbuf_set_volatile, m_shbuf_id, false);
|
||||
if (rc == 0)
|
||||
return true;
|
||||
ASSERT(rc == 1);
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue