twizzler_abi/
meta.rs

1//! Types that make up object metadata.
2
3use core::sync::atomic::AtomicU32;
4
5pub use twizzler_rt_abi::object::{
6    MetaExt, MetaExtTag, MetaFlags, MetaInfo, MEXT_EMPTY, MEXT_SIZED,
7};
8
9#[repr(C)]
10pub struct FotEntry {
11    pub values: [u64; 2],
12    pub resolver: u64,
13    pub flags: AtomicU32,
14}
15
16bitflags::bitflags! {
17    #[repr(C)]
18    #[derive(Copy, Clone, Debug, PartialEq, PartialOrd, Ord, Eq, Hash)]
19    pub struct FotFlags : u32 {
20        const ALLOCATED = 1;
21        const ACTIVE = 2;
22        const DELETED = 4;
23        const RESOLVER = 8;
24    }
25}