/* * Copyright (c) 2022, Liav A. * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include namespace Kernel { UNMAP_AFTER_INIT NonnullLockRefPtr SysFSCommandLine::must_create(SysFSDirectory const& parent_directory) { return adopt_lock_ref_if_nonnull(new (nothrow) SysFSCommandLine(parent_directory)).release_nonnull(); } UNMAP_AFTER_INIT SysFSCommandLine::SysFSCommandLine(SysFSDirectory const& parent_directory) : SysFSGlobalInformation(parent_directory) { } ErrorOr SysFSCommandLine::try_generate(KBufferBuilder& builder) { TRY(builder.append(kernel_command_line().string())); TRY(builder.append('\n')); return {}; } }