IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
virt.hpp File Reference

Virtual address type. More...

#include <bit>
#include <arch/types.hpp>
Include dependency graph for virt.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  igros
 IgrOS kernel: common types and literals.
namespace  igros::mem
 Memory management: physical page allocator, direct map, virtual addresses.

Enumerations

enum class  igros::mem::virt_t : igros_usize_t
 Virtual address: translated by paging, never dereferenced through this type. More...

Functions

template<class T>
auto igros::mem::virtOf (const T *const object) noexcept -> virt_t
 Virtual address of object.
constexpr auto igros::mem::address (const virt_t virt) noexcept -> igros_usize_t
 Numeric value of virtual address.
constexpr auto igros::mem::operator+ (const virt_t virt, const igros_usize_t offset) noexcept -> virt_t
 Virtual address at offset.

Detailed Description

Virtual address type.

Date
03 Nov 2026
Author
Igor Baklykov

Definition in file virt.hpp.