aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/filesystem/rootfs/rootfs_filesystem.cpp
blob: 22b19622b967847a749f695983d3948d0330bedc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "kernel/filesystem/rootfs/rootfs_filesystem.hpp"

#include "kernel/devices/device.hpp"
#include "kernel/filesystem/inode.hpp"
#include "kernel/filesystem/rootfs/rootfs_inode.hpp"

#include <kstd/memory>

#include <string_view>

namespace filesystem::rootfs
{
  auto rootfs_filesystem::mount(kstd::shared_ptr<devices::device> const & /*device*/) -> int
  {
    m_root_inode = kstd::make_shared<rootfs_inode>();
    return 0;
  }

  auto rootfs_filesystem::lookup(kstd::shared_ptr<inode> const & /*parent*/, std::string_view /*name*/)
      -> kstd::shared_ptr<inode>
  {
    return nullptr;
  }
}  // namespace filesystem::rootfs