mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
Add an fd field to FileHandle in Kernel builds.
This commit is contained in:
@@ -12,8 +12,17 @@ static dword encodedDevice(unsigned major, unsigned minor)
|
||||
return (minor & 0xff) | (major << 8) | ((minor & ~0xff) << 12);
|
||||
}
|
||||
|
||||
static VirtualFileSystem* s_the;
|
||||
|
||||
VirtualFileSystem& VirtualFileSystem::the()
|
||||
{
|
||||
ASSERT(s_the);
|
||||
return *s_the;
|
||||
}
|
||||
|
||||
VirtualFileSystem::VirtualFileSystem()
|
||||
{
|
||||
s_the = this;
|
||||
m_maxNodeCount = 16;
|
||||
m_nodes = reinterpret_cast<Node*>(kmalloc(sizeof(Node) * maxNodeCount()));
|
||||
memset(m_nodes, 0, sizeof(Node) * maxNodeCount());
|
||||
|
||||
Reference in New Issue
Block a user