#[repr(C)]pub struct DeviceState {Show 18 fields
pub parent_obj: Object,
pub id: *mut c_char,
pub canonical_path: *mut c_char,
pub realized: bool,
pub pending_deleted_event: bool,
pub pending_deleted_expires_ms: i64,
pub hotplugged: c_int,
pub allow_unplug_during_migration: bool,
pub parent_bus: *mut BusState,
pub gpios: NamedGPIOListHead,
pub clocks: NamedClockListHead,
pub child_bus: BusStateHead,
pub num_child_bus: c_int,
pub instance_id_alias: c_int,
pub alias_required_for_version: c_int,
pub reset: ResettableState,
pub unplug_blockers: *mut GSList,
pub mem_reentrancy_guard: MemReentrancyGuard,
}
Expand description
struct DeviceState - common device state, accessed with qdev helpers
This structure should not be accessed directly. We declare it here so that it can be embedded in individual device state structures.
Fields§
§parent_obj: Object
§id: *mut c_char
@id: global device id
canonical_path: *mut c_char
@canonical_path: canonical path of realized device in the QOM tree
realized: bool
@realized: has device been realized?
pending_deleted_event: bool
@pending_deleted_event: track pending deletion events during unplug
pending_deleted_expires_ms: i64
@pending_deleted_expires_ms: optional timeout for deletion events
hotplugged: c_int
@hotplugged: was device added after PHASE_MACHINE_READY?
allow_unplug_during_migration: bool
@allow_unplug_during_migration: can device be unplugged during migration
parent_bus: *mut BusState
@parent_bus: bus this device belongs to
gpios: NamedGPIOListHead
@gpios: QLIST of named GPIOs the device provides.
clocks: NamedClockListHead
@clocks: QLIST of named clocks the device provides.
child_bus: BusStateHead
@child_bus: QLIST of child buses
num_child_bus: c_int
@num_child_bus: number of @child_bus entries
instance_id_alias: c_int
@instance_id_alias: device alias for handling legacy migration setups
alias_required_for_version: c_int
@alias_required_for_version: indicates @instance_id_alias is needed for migration
reset: ResettableState
@reset: ResettableState for the device; handled by Resettable interface.
unplug_blockers: *mut GSList
@unplug_blockers: list of reasons to block unplugging of device
mem_reentrancy_guard: MemReentrancyGuard
@mem_reentrancy_guard: Is the device currently in mmio/pio/dma?
Used to prevent re-entrancy confusing things.
Trait Implementations§
Source§impl Clone for DeviceState
impl Clone for DeviceState
Source§fn clone(&self) -> DeviceState
fn clone(&self) -> DeviceState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more