diff options
Diffstat (limited to 'kapi')
| -rw-r--r-- | kapi/kapi/devices/driver.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kapi/kapi/devices/driver.hpp b/kapi/kapi/devices/driver.hpp index 348e2841..20f66536 100644 --- a/kapi/kapi/devices/driver.hpp +++ b/kapi/kapi/devices/driver.hpp @@ -80,6 +80,11 @@ namespace kapi::devices //! Drivers that want to claim an auto-populated device node in devfs must override this function. [[nodiscard]] virtual auto claimed_major() const -> std::optional<std::uint8_t>; + //! Get the minor number associated with the driver and a device, if any. + //! + //! @param device The device associated with the relevant device number registration. + [[nodiscard]] virtual auto claimed_minor(device & device) const -> std::optional<std::uint8_t>; + //! Get the name of this driver. //! //! @return The static name of this driver. |
