ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation.sys.service.core Module Reference

Data Structures

struct  zxfoundation::sys::service::service_entry
 A single entry in the service registry. More...

Functions

 zxfoundation::sys::service::assert_offset (service_entry, ko, 0)
auto zxfoundation::sys::service::destroy_for_domain (u32 domain_id) noexcept -> void
 Remove service entries owned by a domain entering teardown.
auto zxfoundation::sys::service::init () noexcept -> void
 Initialize the service registry.
auto zxfoundation::sys::service::lookup_service (std::string_view name, u32 caller_id) noexcept -> std::expected< dgp::cap::cap_token, lib::kernel_error >
 Look up a service by name.
auto zxfoundation::sys::service::register_service (std::string_view name, dgp::cap::cap_token token, u32 owner_id) noexcept -> std::expected< u32, lib::kernel_error >
 Register a service.
auto zxfoundation::sys::service::register_service_cap_lookup () noexcept -> void
auto zxfoundation::sys::service::service_count () noexcept -> u32
 Return the number of currently registered services.
auto zxfoundation::sys::service::unregister_service (u32 service_id, u32 caller_id) noexcept -> std::expected< void, lib::kernel_error >
 Unregister a service.

Variables

memory::objects::memory_object_ref authority {}
scoms::kobject::bobject ko {}
constexpr u32 zxfoundation::sys::service::MAX_SERVICES = 64
 Maximum number of services that can be registered simultaneously.
char name [SERVICE_NAME_MAX_LEN] {}
constexpr u32 zxfoundation::sys::service::SERVICE_NAME_MAX_LEN = 64
 Maximum length of a service name, including NUL terminator.
dgp::cap::cap_token token {}

Files

file  zxfoundation/sys/service.zcomponent/core.cxxm
file  zxfoundation/sys/service.zcomponent/core.cxx