aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/devices/device.cpp
blob: 29498fa0aa7fcde284e965cdad1aab537c88c74f (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
25
26
27
28
#include "kernel/devices/device.hpp"

#include <cstddef>
#include <string_view>

namespace devices
{
  device::device(size_t major, size_t minor, std::string_view name)
      : m_major(major)
      , m_minor(minor)
      , m_name(name)
  {}

  auto device::major() const -> size_t
  {
    return m_major;
  }

  auto device::minor() const -> size_t
  {
    return m_minor;
  }

  auto device::name() const -> std::string_view
  {
    return m_name;
  }
}  // namespace devices