diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-07-29 21:48:02 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-07-29 21:48:02 +0200 |
| commit | 0958e712a762374b4706015fe225215678906dd8 (patch) | |
| tree | 2cfdaccd3f352635d7a6cd8e6cda7b36155b830c /kapi | |
| parent | eff4dc6b0a9075e640bf8abdb38959d8c408986a (diff) | |
| download | kernel-develop.tar.xz kernel-develop.zip | |
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. |
