From 0958e712a762374b4706015fe225215678906dd8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 29 Jul 2026 21:48:02 +0200 Subject: kernel: allow reallocation of minor numbers --- kapi/kapi/devices/driver.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kapi') 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; + //! 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; + //! Get the name of this driver. //! //! @return The static name of this driver. -- cgit v1.2.3