mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
673592dea8
There was only one permanent storage location for these: as a member in the Mount class. That member is never modified after Mount initialization, so we don't need to worry about races there.
37 lines
781 B
C++
37 lines
781 B
C++
/*
|
|
* Copyright (c) 2019-2020, Sergey Bugaev <bugaevc@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <Kernel/FileSystem/FileSystem.h>
|
|
#include <Kernel/FileSystem/Inode.h>
|
|
|
|
namespace Kernel {
|
|
|
|
class SlavePTY;
|
|
class DevPtsFSInode;
|
|
|
|
class DevPtsFS final : public FileSystem {
|
|
friend class DevPtsFSInode;
|
|
|
|
public:
|
|
virtual ~DevPtsFS() override;
|
|
static ErrorOr<NonnullRefPtr<FileSystem>> try_create();
|
|
|
|
virtual ErrorOr<void> initialize() override;
|
|
virtual StringView class_name() const override { return "DevPtsFS"sv; }
|
|
|
|
virtual Inode& root_inode() override;
|
|
|
|
private:
|
|
DevPtsFS();
|
|
ErrorOr<NonnullRefPtr<Inode>> get_inode(InodeIdentifier) const;
|
|
|
|
RefPtr<DevPtsFSInode> m_root_inode;
|
|
};
|
|
|
|
}
|