Capability system type definitions — opaque resource tokens for the DGP kernel's capability-based authorization model. More...
import zxfoundation.base.types;Go to the source code of this file.
Data Structures | |
| struct | zxfoundation::dgp::cap::cap_token |
| Opaque 64-bit capability token. More... | |
Enumerations | |
| enum class | zxfoundation::dgp::cap::cap_rights : u16 { none = 0 , read = 1U << 0 , write = 1U << 1 , exec = 1U << 2 , destroy = 1U << 3 , delegate = 1U << 4 , admin = 1U << 5 , map = 1U << 6 , all = 0xFFFFU } |
| Standard access rights usable with any capability type. More... | |
| enum class | zxfoundation::dgp::cap::cap_type : u16 { none = 0 , domain = 1 , gate = 2 , portal = 3 , io_device = 5 , memory = 6 , service = 7 , admin = 8 , memory_extent = 9 } |
| Discriminator for the kind of resource a capability token refers to. More... | |
Functions | |
| constexpr auto | zxfoundation::dgp::cap::cap_type_name (cap_type t) noexcept -> const char * |
| Return a human-readable label for a capability type. | |
| constexpr auto | zxfoundation::dgp::cap::operator& (cap_rights a, cap_rights b) noexcept -> cap_rights |
| constexpr auto | zxfoundation::dgp::cap::operator| (cap_rights a, cap_rights b) noexcept -> cap_rights |
| constexpr auto | zxfoundation::dgp::cap::operator~ (cap_rights r) noexcept -> cap_rights |
Variables | |
| constexpr u64 | zxfoundation::dgp::cap::CAP_ERROR_SENTINEL = ~0ULL |
| Sentinel value indicating an error from capability operations. | |
| constexpr cap_token | zxfoundation::dgp::cap::CAP_TOKEN_NULL {} |
| Null / invalid capability token sentinel. | |
Capability system type definitions — opaque resource tokens for the DGP kernel's capability-based authorization model.
SPDX-License-Identifier: Apache-2.0
|
exportstrong |
Standard access rights usable with any capability type.
|
exportstrong |
Discriminator for the kind of resource a capability token refers to.