mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 00:22:36 +02:00
Start working on virtual consoles/TTYs.
This is a mess right now, but I'd rather commit as I go.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 18:36:32 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/68739dc43e6
@@ -22,6 +22,11 @@
|
||||
class CharacterDevice;
|
||||
class FileHandle;
|
||||
|
||||
inline constexpr dword encodedDevice(unsigned major, unsigned minor)
|
||||
{
|
||||
return (minor & 0xff) | (major << 8) | ((minor & ~0xff) << 12);
|
||||
}
|
||||
|
||||
class VirtualFileSystem {
|
||||
public:
|
||||
static void initializeGlobals();
|
||||
@@ -94,7 +99,7 @@ public:
|
||||
|
||||
bool touch(const String&path);
|
||||
|
||||
void registerCharacterDevice(unsigned major, unsigned minor, CharacterDevice&);
|
||||
void registerCharacterDevice(CharacterDevice&);
|
||||
|
||||
size_t mountCount() const { return m_mounts.size(); }
|
||||
void forEachMount(Function<void(const Mount&)>) const;
|
||||
|
||||
Reference in New Issue
Block a user