/* * Copyright (c) 2021, Liav A. * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include namespace Kernel { ErrorOr> SysFS::try_create() { return TRY(adopt_nonnull_lock_ref_or_enomem(new (nothrow) SysFS)); } SysFS::SysFS() = default; SysFS::~SysFS() = default; ErrorOr SysFS::initialize() { m_root_inode = TRY(SysFSComponentRegistry::the().root_directory().to_inode(*this)); return {}; } Inode& SysFS::root_inode() { return *m_root_inode; } }