1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 17:35:06 +00:00

Kernel: Move all code into the Kernel namespace

This commit is contained in:
Andreas Kling 2020-02-16 01:27:42 +01:00
parent d42f0f4661
commit a356e48150
201 changed files with 907 additions and 111 deletions

View file

@ -40,6 +40,8 @@
#include <Kernel/VM/MemoryManager.h>
#include <LibC/errno_numbers.h>
namespace Kernel {
NonnullRefPtr<FileDescription> FileDescription::create(Custody& custody)
{
auto description = adopt(*new FileDescription(InodeFile::create(custody.inode())));
@ -170,7 +172,6 @@ ByteBuffer FileDescription::read_entire_file()
return m_inode->read_entire(this);
}
ssize_t FileDescription::get_dir_entries(u8* buffer, ssize_t size)
{
LOCKER(m_lock);
@ -340,3 +341,5 @@ KResult FileDescription::chown(uid_t uid, gid_t gid)
LOCKER(m_lock);
return m_file->chown(uid, gid);
}
}