diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-07-24 19:33:03 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-07-24 19:33:03 +0200 |
| commit | 40c91984152a238351529d2611fe627040f6a618 (patch) | |
| tree | 74a6d0ec2dcf577fed3ee6568077d1b90c306887 /kapi | |
| parent | 3d09b0bd2c35740b34b87c1400e0a3d93647a5d2 (diff) | |
| download | kernel-40c91984152a238351529d2611fe627040f6a618.tar.xz kernel-40c91984152a238351529d2611fe627040f6a618.zip | |
kapi: rename boot_module to module
Diffstat (limited to 'kapi')
| -rw-r--r-- | kapi/kapi/boot_modules.hpp | 6 | ||||
| -rw-r--r-- | kapi/kapi/boot_modules/bus.hpp | 10 | ||||
| -rw-r--r-- | kapi/kapi/boot_modules/module.hpp (renamed from kapi/kapi/boot_modules/boot_module.hpp) | 6 | ||||
| -rw-r--r-- | kapi/kapi/boot_modules/registry.hpp | 6 |
4 files changed, 14 insertions, 14 deletions
diff --git a/kapi/kapi/boot_modules.hpp b/kapi/kapi/boot_modules.hpp index 49a83ef5..7f47c628 100644 --- a/kapi/kapi/boot_modules.hpp +++ b/kapi/kapi/boot_modules.hpp @@ -1,9 +1,9 @@ #ifndef TEACHOS_KAPI_BOOT_MODULES_HPP #define TEACHOS_KAPI_BOOT_MODULES_HPP -#include <kapi/boot_modules/boot_module.hpp> // IWYU pragma: export -#include <kapi/boot_modules/bus.hpp> // IWYU pragma: export -#include <kapi/boot_modules/registry.hpp> // IWYU pragma: export +#include <kapi/boot_modules/bus.hpp> // IWYU pragma: export +#include <kapi/boot_modules/module.hpp> // IWYU pragma: export +#include <kapi/boot_modules/registry.hpp> // IWYU pragma: export namespace kapi::boot_modules { diff --git a/kapi/kapi/boot_modules/bus.hpp b/kapi/kapi/boot_modules/bus.hpp index 7e3c773c..2c52677e 100644 --- a/kapi/kapi/boot_modules/bus.hpp +++ b/kapi/kapi/boot_modules/bus.hpp @@ -3,7 +3,7 @@ // IWYU pragma: private, include <kapi/boot_modules.hpp> -#include <kapi/boot_modules/boot_module.hpp> +#include <kapi/boot_modules/module.hpp> #include <kapi/boot_modules/registry.hpp> #include <kapi/devices.hpp> @@ -24,7 +24,7 @@ namespace kapi::boot_modules [[nodiscard]] auto virtual command_line() const -> std::string_view = 0; - [[nodiscard]] auto virtual module() const -> boot_module const & = 0; + [[nodiscard]] auto virtual module() const -> module const & = 0; }; struct boot_module_driver_identification @@ -38,17 +38,17 @@ namespace kapi::boot_modules struct boot_module_device final : kapi::devices::device, boot_module_identification { - boot_module_device(std::size_t index, boot_module const & module); + boot_module_device(std::size_t index, struct module const & module); [[nodiscard]] auto command_line() const -> std::string_view override; - [[nodiscard]] auto module() const -> boot_module const & override; + [[nodiscard]] auto module() const -> struct module const & override; protected: auto query_interface(kapi::devices::interface interface) -> void * override; private: - boot_module m_module; + struct module m_module; }; struct boot_module_bus final : kapi::devices::bus, kapi::devices::bus_protocol diff --git a/kapi/kapi/boot_modules/boot_module.hpp b/kapi/kapi/boot_modules/module.hpp index 85de7ab0..14898132 100644 --- a/kapi/kapi/boot_modules/boot_module.hpp +++ b/kapi/kapi/boot_modules/module.hpp @@ -1,5 +1,5 @@ -#ifndef TEACHOS_KAPI_BOOT_MODULES_BOOT_MODULE_HPP -#define TEACHOS_KAPI_BOOT_MODULES_BOOT_MODULE_HPP +#ifndef TEACHOS_KAPI_BOOT_MODULES_MODULE_HPP +#define TEACHOS_KAPI_BOOT_MODULES_MODULE_HPP // IWYU pragma: private, include <kapi/boot_modules.hpp> @@ -14,7 +14,7 @@ namespace kapi::boot_modules // ! // ! The boot module struct represents a module loaded by the bootloader, and contains information about it, such as // ! its name, virtual start address, and size. - struct boot_module + struct module { std::string_view name{}; memory::linear_address start_address{}; diff --git a/kapi/kapi/boot_modules/registry.hpp b/kapi/kapi/boot_modules/registry.hpp index 4c659fa4..33dc2169 100644 --- a/kapi/kapi/boot_modules/registry.hpp +++ b/kapi/kapi/boot_modules/registry.hpp @@ -3,7 +3,7 @@ // IWYU pragma: private, include <kapi/boot_modules.hpp> -#include <kapi/boot_modules/boot_module.hpp> +#include <kapi/boot_modules/module.hpp> #include <kstd/vector.hpp> @@ -21,7 +21,7 @@ namespace kapi::boot_modules //! providing access to them for the rest of the kernel. struct registry { - using container = kstd::vector<boot_module>; + using container = kstd::vector<module>; using value_type = container::value_type; using const_reference = container::const_reference; @@ -63,7 +63,7 @@ namespace kapi::boot_modules [[nodiscard]] auto operator[](std::size_t index) const noexcept -> const_reference; - auto add(boot_module module) -> void; + auto add(module module) -> void; private: container m_modules{}; |
