diff options
| author | Lukas Oesch <lukasoesch20@gmail.com> | 2026-03-17 12:24:07 +0100 |
|---|---|---|
| committer | Lukas Oesch <lukasoesch20@gmail.com> | 2026-03-17 16:44:37 +0100 |
| commit | 3f8af998aaf87d83af3af6c5708d8a84b775b50e (patch) | |
| tree | 47da82dbce4cf7a6de3bd44ce92588c8bbe82681 | |
| parent | 5801be615a50bf465a9663b7f75cafbcf0870f5c (diff) | |
| download | teachos-3f8af998aaf87d83af3af6c5708d8a84b775b50e.tar.xz teachos-3f8af998aaf87d83af3af6c5708d8a84b775b50e.zip | |
write comments
3 files changed, 9 insertions, 3 deletions
diff --git a/kernel/devices/include/devices/storage/storage_controller.hpp b/kernel/devices/include/devices/storage/storage_controller.hpp index e90b01c..7760fc9 100644 --- a/kernel/devices/include/devices/storage/storage_controller.hpp +++ b/kernel/devices/include/devices/storage/storage_controller.hpp @@ -47,7 +47,10 @@ namespace devices::storage */ [[nodiscard]] auto devices_count() const -> size_t; - // TODO BA-FS26 add comment + /** + * @brief Return all devices managed by this controller. + * @return Vector of all managed devices. + */ [[nodiscard]] auto all_devices() const -> kstd::vector<kstd::shared_ptr<devices::device>> const &; /** diff --git a/kernel/devices/include/devices/storage/storage_management.hpp b/kernel/devices/include/devices/storage/storage_management.hpp index dc2f6c9..65211c8 100644 --- a/kernel/devices/include/devices/storage/storage_management.hpp +++ b/kernel/devices/include/devices/storage/storage_management.hpp @@ -44,7 +44,10 @@ namespace devices::storage */ auto add_controller(kstd::shared_ptr<storage_controller> controller) -> void; - // TODO BA-FS26 add comment + /** + * @brief Return all registered storage controllers. + * @return Vector of all registered storage controllers. + */ [[nodiscard]] auto all_controllers() const -> kstd::vector<kstd::shared_ptr<storage_controller>> const &; /** diff --git a/kernel/devices/src/storage/ram_disk/ram_disk_device.cpp b/kernel/devices/src/storage/ram_disk/ram_disk_device.cpp index 6ff2a83..91a278e 100644 --- a/kernel/devices/src/storage/ram_disk/ram_disk_device.cpp +++ b/kernel/devices/src/storage/ram_disk/ram_disk_device.cpp @@ -15,7 +15,7 @@ namespace devices::storage::ram_disk { namespace { - constexpr size_t RAM_DISK_BLOCK_SIZE = 512uz; // TODO BA-FS26 really correct / good?? + constexpr size_t RAM_DISK_BLOCK_SIZE = 512uz; // TODO BA-FS26 @Felix // TODO BA-FS26 currently only names for 9 minor devices |
