ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation.scoms.kobject.base Module Reference

Data Structures

struct  zxfoundation::scoms::kobject::bobject
 The kernel object header — embedded at offset 0 of every SCOMS-managed resource. More...

Typedefs

using zxfoundation::scoms::kobject::bobject_finalizer_fn = void (*)(bobject&) noexcept

Functions

 bobject (bobject &&)=delete
 bobject (const bobject &)=delete
auto initialize (u32 object_id, kobject::kobject_type object_type) noexcept -> void
 Reset identity and relationship metadata for a new slot use.
auto zxfoundation::scoms::kobject::install_bobject_finalizer (bobject_finalizer_fn finalizer) noexcept -> void
 Install the SCOMS metadata finalizer used after the last put.
auto operator= (bobject &&)=delete
auto operator= (const bobject &)=delete
auto put () noexcept -> void
 Drop a lifetime reference and reclaim on the final put.
auto transition (lifecycle_state target) noexcept -> bool
 Validate and perform one canonical lifecycle transition.
auto try_get () noexcept -> bool
 Acquire a lifetime reference without resurrecting retirement.

Variables

u8 _pad0 [2] {}
u32 generation {0}
u32 id {~0U}
sync::qspinlock::qspinlock lock {}
u32 object_flags {0}
kref ref {}
lifecycle_state state {lifecycle_state::embryo}
kobject::kobject_type type {kobject::kobject_type::none}

Files

file  zxfoundation/scoms/kobject.zcomponent/base.cxxm
file  zxfoundation/scoms/kobject.zcomponent/base.cxx