diff options
Diffstat (limited to 'kapi')
| -rw-r--r-- | kapi/include/kapi/devices/device.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kapi/include/kapi/devices/device.hpp b/kapi/include/kapi/devices/device.hpp index b3647da..9939494 100644 --- a/kapi/include/kapi/devices/device.hpp +++ b/kapi/include/kapi/devices/device.hpp @@ -3,6 +3,7 @@ // IWYU pragma: private, include "kapi/devices.hpp" +#include <kstd/memory> #include <kstd/string> #include <cstddef> @@ -62,9 +63,14 @@ namespace kapi::devices [[nodiscard]] virtual auto is_block_device() const -> bool; private: + friend struct bus; + + auto set_parent(kstd::observer_ptr<struct bus> parent) -> void; + size_t m_major; size_t m_minor; kstd::string m_name; + kstd::observer_ptr<bus> m_parent; }; //! @} |
