aboutsummaryrefslogtreecommitdiff
path: root/kapi
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-01-16 13:36:38 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-01-16 13:36:38 +0100
commit7d6f0ed063790042a808f4bf07c50d308b3f2de4 (patch)
tree1a2e1c4ed7e2f3d8e6cdcfb012e554d1a4eb1e5a /kapi
parent9750405757396d006ab6992fb93baf414b3e2ae8 (diff)
downloadteachos-7d6f0ed063790042a808f4bf07c50d308b3f2de4.tar.xz
teachos-7d6f0ed063790042a808f4bf07c50d308b3f2de4.zip
chore: restructure namespaces
Diffstat (limited to 'kapi')
-rw-r--r--kapi/include/kapi/boot.hpp4
-rw-r--r--kapi/include/kapi/cio.hpp4
-rw-r--r--kapi/include/kapi/cio/output_device.hpp4
-rw-r--r--kapi/include/kapi/cpu.hpp4
-rw-r--r--kapi/include/kapi/memory.hpp4
-rw-r--r--kapi/include/kapi/memory/address.hpp12
-rw-r--r--kapi/include/kapi/memory/chunk.hpp4
-rw-r--r--kapi/include/kapi/memory/frame.hpp4
-rw-r--r--kapi/include/kapi/memory/frame_allocator.hpp4
-rw-r--r--kapi/include/kapi/memory/page.hpp4
-rw-r--r--kapi/include/kapi/memory/page_mapper.hpp6
-rw-r--r--kapi/include/kapi/system.hpp4
12 files changed, 29 insertions, 29 deletions
diff --git a/kapi/include/kapi/boot.hpp b/kapi/include/kapi/boot.hpp
index 9c344cf..55ca941 100644
--- a/kapi/include/kapi/boot.hpp
+++ b/kapi/include/kapi/boot.hpp
@@ -1,7 +1,7 @@
#ifndef TEACHOS_KAPI_BOOT_HPP
#define TEACHOS_KAPI_BOOT_HPP
-namespace teachos::boot
+namespace kapi::boot
{
//! @qualifier platform-defined
//! Information passed from the early pre-main stage to the kernel executable.
@@ -12,6 +12,6 @@ namespace teachos::boot
//! @qualifier platform-defined
//! An object passed from the early pre-main stage to the kernel executable.
extern "C" information const bootstrap_information;
-} // namespace teachos::boot
+} // namespace kapi::boot
#endif
diff --git a/kapi/include/kapi/cio.hpp b/kapi/include/kapi/cio.hpp
index 4d1fc3c..48f3000 100644
--- a/kapi/include/kapi/cio.hpp
+++ b/kapi/include/kapi/cio.hpp
@@ -8,7 +8,7 @@
#include <optional>
#include <string_view>
-namespace teachos::cio
+namespace kapi::cio
{
//! @qualifier platform-defined
@@ -27,6 +27,6 @@ namespace teachos::cio
auto write(output_stream stream, std::string_view text) -> void;
-} // namespace teachos::cio
+} // namespace kapi::cio
#endif
diff --git a/kapi/include/kapi/cio/output_device.hpp b/kapi/include/kapi/cio/output_device.hpp
index bbdf6ed..f08d7ba 100644
--- a/kapi/include/kapi/cio/output_device.hpp
+++ b/kapi/include/kapi/cio/output_device.hpp
@@ -5,7 +5,7 @@
#include <string_view>
-namespace teachos::cio
+namespace kapi::cio
{
enum struct output_stream
@@ -34,6 +34,6 @@ namespace teachos::cio
output_device() = default;
};
-} // namespace teachos::cio
+} // namespace kapi::cio
#endif
diff --git a/kapi/include/kapi/cpu.hpp b/kapi/include/kapi/cpu.hpp
index 0a26bcf..05b84b7 100644
--- a/kapi/include/kapi/cpu.hpp
+++ b/kapi/include/kapi/cpu.hpp
@@ -1,13 +1,13 @@
#ifndef TEACHOS_KAPI_CPU_HPP
#define TEACHOS_KAPI_CPU_HPP
-namespace teachos::cpu
+namespace kapi::cpu
{
//! @qualifier platform-defined
//! Halt the CPU.
//!
//! This function terminates execution of the kernel.
[[noreturn]] auto halt() -> void;
-} // namespace teachos::cpu
+} // namespace kapi::cpu
#endif
diff --git a/kapi/include/kapi/memory.hpp b/kapi/include/kapi/memory.hpp
index c2e9df8..87268ff 100644
--- a/kapi/include/kapi/memory.hpp
+++ b/kapi/include/kapi/memory.hpp
@@ -12,7 +12,7 @@
#include <optional>
#include <utility>
-namespace teachos::memory
+namespace kapi::memory
{
//! @qualifier platform-defined
@@ -73,6 +73,6 @@ namespace teachos::memory
//! @param page The page to unmap
auto unmap(page page) -> void;
-} // namespace teachos::memory
+} // namespace kapi::memory
#endif
diff --git a/kapi/include/kapi/memory/address.hpp b/kapi/include/kapi/memory/address.hpp
index 4fdaf5a..39eb1ee 100644
--- a/kapi/include/kapi/memory/address.hpp
+++ b/kapi/include/kapi/memory/address.hpp
@@ -11,7 +11,7 @@
#include <cstdint>
#include <string_view>
-namespace teachos::memory
+namespace kapi::memory
{
//! @qualifier kernel-defined
@@ -99,15 +99,15 @@ namespace teachos::memory
//! A physical address.
using physical_address = address<address_type::physical>;
-} // namespace teachos::memory
+} // namespace kapi::memory
namespace kstd
{
- template<teachos::memory::address_type Type>
- struct formatter<teachos::memory::address<Type>> : kstd::formatter<std::uintptr_t>
+ template<kapi::memory::address_type Type>
+ struct formatter<kapi::memory::address<Type>> : kstd::formatter<std::uintptr_t>
{
- constexpr auto static suffix = Type == teachos::memory::address_type::linear ? "%lin" : "%phy";
+ constexpr auto static suffix = Type == kapi::memory::address_type::linear ? "%lin" : "%phy";
constexpr auto parse(std::string_view context) -> std::string_view
{
@@ -120,7 +120,7 @@ namespace kstd
return result;
}
- auto format(teachos::memory::address<Type> const & address, format_context & context) const -> void
+ auto format(kapi::memory::address<Type> const & address, format_context & context) const -> void
{
formatter<std::uintptr_t>::format(address.raw(), context);
context.push(suffix);
diff --git a/kapi/include/kapi/memory/chunk.hpp b/kapi/include/kapi/memory/chunk.hpp
index fde2e36..dd97a58 100644
--- a/kapi/include/kapi/memory/chunk.hpp
+++ b/kapi/include/kapi/memory/chunk.hpp
@@ -6,7 +6,7 @@
#include <compare>
#include <cstddef>
-namespace teachos::memory
+namespace kapi::memory
{
//! @qualifier kernel-defined
@@ -99,6 +99,6 @@ namespace teachos::memory
std::size_t m_number{};
};
-} // namespace teachos::memory
+} // namespace kapi::memory
#endif \ No newline at end of file
diff --git a/kapi/include/kapi/memory/frame.hpp b/kapi/include/kapi/memory/frame.hpp
index 49f3bb0..e7b0832 100644
--- a/kapi/include/kapi/memory/frame.hpp
+++ b/kapi/include/kapi/memory/frame.hpp
@@ -6,7 +6,7 @@
#include "kapi/memory/address.hpp"
#include "kapi/memory/chunk.hpp"
-namespace teachos::memory
+namespace kapi::memory
{
//! @qualifier kernel-defined
@@ -34,6 +34,6 @@ namespace teachos::memory
{}
};
-} // namespace teachos::memory
+} // namespace kapi::memory
#endif \ No newline at end of file
diff --git a/kapi/include/kapi/memory/frame_allocator.hpp b/kapi/include/kapi/memory/frame_allocator.hpp
index 8532a45..6ed114c 100644
--- a/kapi/include/kapi/memory/frame_allocator.hpp
+++ b/kapi/include/kapi/memory/frame_allocator.hpp
@@ -9,7 +9,7 @@
#include <optional>
#include <utility>
-namespace teachos::memory
+namespace kapi::memory
{
//! The interface of all frame allocators.
@@ -58,6 +58,6 @@ namespace teachos::memory
frame_allocator() = default;
};
-} // namespace teachos::memory
+} // namespace kapi::memory
#endif // TEACHOS_KAPI_MEMORY_FRAME_ALLOCATOR_HPP \ No newline at end of file
diff --git a/kapi/include/kapi/memory/page.hpp b/kapi/include/kapi/memory/page.hpp
index 57f4f09..55d6e75 100644
--- a/kapi/include/kapi/memory/page.hpp
+++ b/kapi/include/kapi/memory/page.hpp
@@ -6,7 +6,7 @@
#include "kapi/memory/address.hpp"
#include "kapi/memory/chunk.hpp"
-namespace teachos::memory
+namespace kapi::memory
{
//! @qualifier kernel-defined
@@ -34,6 +34,6 @@ namespace teachos::memory
{}
};
-} // namespace teachos::memory
+} // namespace kapi::memory
#endif \ No newline at end of file
diff --git a/kapi/include/kapi/memory/page_mapper.hpp b/kapi/include/kapi/memory/page_mapper.hpp
index 2396249..07eabcf 100644
--- a/kapi/include/kapi/memory/page_mapper.hpp
+++ b/kapi/include/kapi/memory/page_mapper.hpp
@@ -10,7 +10,7 @@
#include <type_traits>
-namespace teachos::memory
+namespace kapi::memory
{
//! @qualifier platform-implemented
@@ -74,12 +74,12 @@ namespace teachos::memory
page_mapper() = default;
};
-} // namespace teachos::memory
+} // namespace kapi::memory
namespace kstd::ext
{
template<>
- struct is_bitfield_enum<teachos::memory::page_mapper::flags> : std::true_type
+ struct is_bitfield_enum<kapi::memory::page_mapper::flags> : std::true_type
{
};
} // namespace kstd::ext
diff --git a/kapi/include/kapi/system.hpp b/kapi/include/kapi/system.hpp
index e6b9826..6c5683a 100644
--- a/kapi/include/kapi/system.hpp
+++ b/kapi/include/kapi/system.hpp
@@ -4,7 +4,7 @@
#include <source_location>
#include <string_view>
-namespace teachos::system
+namespace kapi::system
{
//! @qualifier kernel-defined
@@ -15,6 +15,6 @@ namespace teachos::system
//! @param message The message associated with the panic
[[noreturn]] auto panic(std::string_view message, std::source_location = std::source_location::current()) -> void;
-} // namespace teachos::system
+} // namespace kapi::system
#endif