diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-07-15 16:00:23 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-07-15 16:00:23 +0200 |
| commit | 81392dc08ab1a165558d30cb068d62f56752693b (patch) | |
| tree | 06ab8091c1132d96366aaeeb26016414f842214b | |
| parent | 014e52494a73ce80d9e4c47e4eab676213c25a03 (diff) | |
| download | kernel-81392dc08ab1a165558d30cb068d62f56752693b.tar.xz kernel-81392dc08ab1a165558d30cb068d62f56752693b.zip | |
kapi: rename bus::probe to enumerate
| -rw-r--r-- | kapi/kapi/devices/bus.hpp | 4 | ||||
| -rw-r--r-- | kernel/kapi/devices/bus.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/kapi/kapi/devices/bus.hpp b/kapi/kapi/devices/bus.hpp index 8e2b5acf..c4777616 100644 --- a/kapi/kapi/devices/bus.hpp +++ b/kapi/kapi/devices/bus.hpp @@ -44,10 +44,10 @@ namespace kapi::devices [[nodiscard]] auto children() const -> kstd::vector<kstd::observer_ptr<device>> const &; protected: - //! Probe the bus hardware state. + //! Enumerate the devices on the bus. //! //! @return true iff. the bus hardware is healthy, false otherwise. - auto virtual probe() -> bool; + auto virtual enumerate() -> bool; private: kstd::vector<kstd::unique_ptr<device>> m_devices; diff --git a/kernel/kapi/devices/bus.cpp b/kernel/kapi/devices/bus.cpp index 43310d2b..4695ae39 100644 --- a/kernel/kapi/devices/bus.cpp +++ b/kernel/kapi/devices/bus.cpp @@ -26,9 +26,9 @@ namespace kapi::devices return true; } - if (!probe()) + if (!enumerate()) { - kstd::println(kstd::print_sink::stderr, "[OS:DEV] Bus {}:{}:{} probe failed", name(), major(), minor()); + kstd::println(kstd::print_sink::stderr, "[OS:DEV] Bus {}:{}:{} enumeration failed", name(), major(), minor()); return false; } @@ -64,7 +64,7 @@ namespace kapi::devices return m_observers; } - auto bus::probe() -> bool + auto bus::enumerate() -> bool { return true; } |
