ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation::scoms::kobject::bobject Struct Referenceexport

The kernel object header — embedded at offset 0 of every SCOMS-managed resource. More...

Collaboration diagram for zxfoundation::scoms::kobject::bobject:
[legend]

Public Member 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 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.

Data Fields

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}

Detailed Description

The kernel object header — embedded at offset 0 of every SCOMS-managed resource.


The documentation for this struct was generated from the following files:
  • zxfoundation/scoms/kobject.zcomponent/base.cxxm
  • zxfoundation/scoms/kobject.zcomponent/base.cxx