1
Fork 0
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:
Andreas Kling 2021-01-16 14:39:53 +01:00
parent c71807a3fc
commit de31e82f97
9 changed files with 0 additions and 77 deletions

View file

@ -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;
}
}