ZXFoundation™ 26h2
Loading...
Searching...
No Matches
nc_dom.cxxm File Reference

Domain namespace dispatch handler — Pure DGP (cap-gated). More...

import lib.error;
import arch.s390x.cpu.lowcore;
import zxfoundation.sched.core;
import zxfoundation.dgp.gate.types;
import zxfoundation.base.config;
import zxfoundation.dgp.domain.types;
import zxfoundation.dgp.authorize;
import zxfoundation.dgp.domain.core;
import zxfoundation.sys.printk.core;
import zxfoundation.base.types;
import arch.s390x.cpu.uaccess;
import zxfoundation.base.typestate;
import zxfoundation.sched.policy;
import zxfoundation.dgp.cap.types;
import zxfoundation.dgp.cap.core;
import std;
import zxfoundation.scoms.kobject.ref;
import zxfoundation.dgp.isolation.types;
Include dependency graph for nc_dom.cxxm:

Data Structures

struct  cap_token
 Opaque 64-bit capability token. More...
struct  domain
 The domain struct — the central entity of the DGP kernel. More...
struct  strand
 Strand — the DGP kernel's unit of schedulable execution. More...

Typedefs

using domain_id
 Opaque domain identifier.

Enumerations

enum class  cap_rights
 Standard access rights usable with any capability type.
enum class  cap_type
 Discriminator for the kind of resource a capability token refers to.
enum class  domain_flags
 Per-domain flags (bitfield).

Functions

auto zxfoundation::dgp::gate::nc_dom::detail::copy_from_user (void *dst, u64 src, u64 len, domain::domain *d) noexcept -> i32
auto zxfoundation::dgp::gate::nc_dom::detail::current_domain () noexcept -> domain::domain *
auto zxfoundation::dgp::gate::nc_dom::dispatch (u32 op, u64 a0, u64 a1, u64 a2, u64 a3, u64 a4) noexcept -> u64
 Dispatch a domain operation.
template<dom_op Op>
auto zxfoundation::dgp::gate::nc_dom::dispatch_wrap (u64 a0, u64 a1, u64 a2, u64 a3, u64 a4) noexcept -> u64
 Static dispatch wrapper for a specific dom_op.
auto zxfoundation::dgp::gate::nc_dom::detail::nc_dom_strand_query_state (u64 a0, u64 a1, u64, u64, u64) noexcept -> u64
 dom_op::strand_query_state — (admin cap, strand_id)
auto zxfoundation::dgp::gate::nc_dom::detail::nc_dom_strand_set_affinity (u64 a0, u64 a1, u64 a2, u64, u64) noexcept -> u64
 dom_op::strand_set_affinity — (admin cap, strand_id, sched_mask_bits)
auto zxfoundation::dgp::gate::nc_dom::detail::nc_dom_strand_set_policy (u64 a0, u64 a1, u64 a2, u64, u64) noexcept -> u64
 dom_op::strand_set_policy — (admin cap, strand_id, &policy_u64...)
auto zxfoundation::dgp::gate::nc_dom::detail::nc_domain_create (u64 a0, u64 a1, u64, u64, u64) noexcept -> u64
auto zxfoundation::dgp::gate::nc_dom::detail::nc_domain_destroy (u64 a0, u64 a1, u64, u64, u64) noexcept -> u64
auto zxfoundation::dgp::gate::nc_dom::detail::nc_domain_exit (u64, u64, u64, u64, u64) noexcept -> u64
auto zxfoundation::dgp::gate::nc_dom::detail::nc_domain_info (u64, u64, u64, u64, u64) noexcept -> u64
auto zxfoundation::dgp::gate::nc_dom::detail::nc_domain_query (u64 a0, u64, u64, u64, u64) noexcept -> u64
auto zxfoundation::dgp::gate::nc_dom::detail::nc_domain_strand_create (u64 a0, u64 a1, u64 a2, u64, u64) noexcept -> u64
auto zxfoundation::dgp::gate::nc_dom::detail::validate_admin (cap_token token, u32 owner_id) noexcept -> bool
 Validate that a capability token confers admin authority.

Variables

static constexpr u64 NC_DOM_ERROR = ~0ULL

Detailed Description

Domain namespace dispatch handler — Pure DGP (cap-gated).

SPDX-License-Identifier: Apache-2.0

Function Documentation

◆ nc_dom_strand_query_state()

auto zxfoundation::dgp::gate::nc_dom::detail::nc_dom_strand_query_state ( u64 a0,
u64 a1,
u64 ,
u64 ,
u64  )->u64
noexcept

dom_op::strand_query_state — (admin cap, strand_id)

Returns a packed u64