blob: 4fdbe275a63c661e8003246f20db1d12ba8cf6fc [file] [log] [blame]
/* automatically generated by rust-bindgen */
#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>);
impl<T> __IncompleteArrayField<T> {
#[inline]
pub fn new() -> Self {
__IncompleteArrayField(::std::marker::PhantomData)
}
#[inline]
pub unsafe fn as_ptr(&self) -> *const T {
::std::mem::transmute(self)
}
#[inline]
pub unsafe fn as_mut_ptr(&mut self) -> *mut T {
::std::mem::transmute(self)
}
#[inline]
pub unsafe fn as_slice(&self, len: usize) -> &[T] {
::std::slice::from_raw_parts(self.as_ptr(), len)
}
#[inline]
pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
}
}
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
fmt.write_str("__IncompleteArrayField")
}
}
impl<T> ::std::clone::Clone for __IncompleteArrayField<T> {
#[inline]
fn clone(&self) -> Self {
Self::new()
}
}
impl<T> ::std::marker::Copy for __IncompleteArrayField<T> {}
pub const __BITS_PER_LONG: ::std::os::raw::c_uint = 64;
pub const __FD_SETSIZE: ::std::os::raw::c_uint = 1024;
pub const _IOC_NRBITS: ::std::os::raw::c_uint = 8;
pub const _IOC_TYPEBITS: ::std::os::raw::c_uint = 8;
pub const _IOC_SIZEBITS: ::std::os::raw::c_uint = 14;
pub const _IOC_DIRBITS: ::std::os::raw::c_uint = 2;
pub const _IOC_NRMASK: ::std::os::raw::c_uint = 255;
pub const _IOC_TYPEMASK: ::std::os::raw::c_uint = 255;
pub const _IOC_SIZEMASK: ::std::os::raw::c_uint = 16383;
pub const _IOC_DIRMASK: ::std::os::raw::c_uint = 3;
pub const _IOC_NRSHIFT: ::std::os::raw::c_uint = 0;
pub const _IOC_TYPESHIFT: ::std::os::raw::c_uint = 8;
pub const _IOC_SIZESHIFT: ::std::os::raw::c_uint = 16;
pub const _IOC_DIRSHIFT: ::std::os::raw::c_uint = 30;
pub const _IOC_NONE: ::std::os::raw::c_uint = 0;
pub const _IOC_WRITE: ::std::os::raw::c_uint = 1;
pub const _IOC_READ: ::std::os::raw::c_uint = 2;
pub const IOC_IN: ::std::os::raw::c_uint = 1073741824;
pub const IOC_OUT: ::std::os::raw::c_uint = 2147483648;
pub const IOC_INOUT: ::std::os::raw::c_uint = 3221225472;
pub const IOCSIZE_MASK: ::std::os::raw::c_uint = 1073676288;
pub const IOCSIZE_SHIFT: ::std::os::raw::c_uint = 16;
pub const KVM_SPSR_EL1: ::std::os::raw::c_uint = 0;
pub const KVM_SPSR_SVC: ::std::os::raw::c_uint = 0;
pub const KVM_SPSR_ABT: ::std::os::raw::c_uint = 1;
pub const KVM_SPSR_UND: ::std::os::raw::c_uint = 2;
pub const KVM_SPSR_IRQ: ::std::os::raw::c_uint = 3;
pub const KVM_SPSR_FIQ: ::std::os::raw::c_uint = 4;
pub const KVM_NR_SPSR: ::std::os::raw::c_uint = 5;
pub const PSCI_0_2_FN_BASE: ::std::os::raw::c_uint = 2214592512;
pub const PSCI_0_2_64BIT: ::std::os::raw::c_uint = 1073741824;
pub const PSCI_0_2_FN64_BASE: ::std::os::raw::c_uint = 3288334336;
pub const PSCI_0_2_POWER_STATE_ID_MASK: ::std::os::raw::c_uint = 65535;
pub const PSCI_0_2_POWER_STATE_ID_SHIFT: ::std::os::raw::c_uint = 0;
pub const PSCI_0_2_POWER_STATE_TYPE_SHIFT: ::std::os::raw::c_uint = 16;
pub const PSCI_0_2_POWER_STATE_TYPE_MASK: ::std::os::raw::c_uint = 65536;
pub const PSCI_0_2_POWER_STATE_AFFL_SHIFT: ::std::os::raw::c_uint = 24;
pub const PSCI_0_2_POWER_STATE_AFFL_MASK: ::std::os::raw::c_uint = 50331648;
pub const PSCI_1_0_EXT_POWER_STATE_ID_MASK: ::std::os::raw::c_uint = 268435455;
pub const PSCI_1_0_EXT_POWER_STATE_ID_SHIFT: ::std::os::raw::c_uint = 0;
pub const PSCI_1_0_EXT_POWER_STATE_TYPE_SHIFT: ::std::os::raw::c_uint = 30;
pub const PSCI_1_0_EXT_POWER_STATE_TYPE_MASK: ::std::os::raw::c_uint = 1073741824;
pub const PSCI_0_2_AFFINITY_LEVEL_ON: ::std::os::raw::c_uint = 0;
pub const PSCI_0_2_AFFINITY_LEVEL_OFF: ::std::os::raw::c_uint = 1;
pub const PSCI_0_2_AFFINITY_LEVEL_ON_PENDING: ::std::os::raw::c_uint = 2;
pub const PSCI_0_2_TOS_UP_MIGRATE: ::std::os::raw::c_uint = 0;
pub const PSCI_0_2_TOS_UP_NO_MIGRATE: ::std::os::raw::c_uint = 1;
pub const PSCI_0_2_TOS_MP: ::std::os::raw::c_uint = 2;
pub const PSCI_VERSION_MAJOR_SHIFT: ::std::os::raw::c_uint = 16;
pub const PSCI_VERSION_MINOR_MASK: ::std::os::raw::c_uint = 65535;
pub const PSCI_VERSION_MAJOR_MASK: ::std::os::raw::c_int = -65536;
pub const PSCI_1_0_FEATURES_CPU_SUSPEND_PF_SHIFT: ::std::os::raw::c_uint = 1;
pub const PSCI_1_0_FEATURES_CPU_SUSPEND_PF_MASK: ::std::os::raw::c_uint = 2;
pub const PSCI_RET_SUCCESS: ::std::os::raw::c_uint = 0;
pub const PSCI_RET_NOT_SUPPORTED: ::std::os::raw::c_int = -1;
pub const PSCI_RET_INVALID_PARAMS: ::std::os::raw::c_int = -2;
pub const PSCI_RET_DENIED: ::std::os::raw::c_int = -3;
pub const PSCI_RET_ALREADY_ON: ::std::os::raw::c_int = -4;
pub const PSCI_RET_ON_PENDING: ::std::os::raw::c_int = -5;
pub const PSCI_RET_INTERNAL_FAILURE: ::std::os::raw::c_int = -6;
pub const PSCI_RET_NOT_PRESENT: ::std::os::raw::c_int = -7;
pub const PSCI_RET_DISABLED: ::std::os::raw::c_int = -8;
pub const PSCI_RET_INVALID_ADDRESS: ::std::os::raw::c_int = -9;
pub const HWCAP_FP: ::std::os::raw::c_uint = 1;
pub const HWCAP_ASIMD: ::std::os::raw::c_uint = 2;
pub const HWCAP_EVTSTRM: ::std::os::raw::c_uint = 4;
pub const HWCAP_AES: ::std::os::raw::c_uint = 8;
pub const HWCAP_PMULL: ::std::os::raw::c_uint = 16;
pub const HWCAP_SHA1: ::std::os::raw::c_uint = 32;
pub const HWCAP_SHA2: ::std::os::raw::c_uint = 64;
pub const HWCAP_CRC32: ::std::os::raw::c_uint = 128;
pub const HWCAP_ATOMICS: ::std::os::raw::c_uint = 256;
pub const PSR_MODE_EL0t: ::std::os::raw::c_uint = 0;
pub const PSR_MODE_EL1t: ::std::os::raw::c_uint = 4;
pub const PSR_MODE_EL1h: ::std::os::raw::c_uint = 5;
pub const PSR_MODE_EL2t: ::std::os::raw::c_uint = 8;
pub const PSR_MODE_EL2h: ::std::os::raw::c_uint = 9;
pub const PSR_MODE_EL3t: ::std::os::raw::c_uint = 12;
pub const PSR_MODE_EL3h: ::std::os::raw::c_uint = 13;
pub const PSR_MODE_MASK: ::std::os::raw::c_uint = 15;
pub const PSR_MODE32_BIT: ::std::os::raw::c_uint = 16;
pub const PSR_F_BIT: ::std::os::raw::c_uint = 64;
pub const PSR_I_BIT: ::std::os::raw::c_uint = 128;
pub const PSR_A_BIT: ::std::os::raw::c_uint = 256;
pub const PSR_D_BIT: ::std::os::raw::c_uint = 512;
pub const PSR_PAN_BIT: ::std::os::raw::c_uint = 4194304;
pub const PSR_Q_BIT: ::std::os::raw::c_uint = 134217728;
pub const PSR_V_BIT: ::std::os::raw::c_uint = 268435456;
pub const PSR_C_BIT: ::std::os::raw::c_uint = 536870912;
pub const PSR_Z_BIT: ::std::os::raw::c_uint = 1073741824;
pub const PSR_N_BIT: ::std::os::raw::c_uint = 2147483648;
pub const PSR_f: ::std::os::raw::c_uint = 4278190080;
pub const PSR_s: ::std::os::raw::c_uint = 16711680;
pub const PSR_x: ::std::os::raw::c_uint = 65280;
pub const PSR_c: ::std::os::raw::c_uint = 255;
pub const KVM_ARM_TARGET_AEM_V8: ::std::os::raw::c_uint = 0;
pub const KVM_ARM_TARGET_FOUNDATION_V8: ::std::os::raw::c_uint = 1;
pub const KVM_ARM_TARGET_CORTEX_A57: ::std::os::raw::c_uint = 2;
pub const KVM_ARM_TARGET_XGENE_POTENZA: ::std::os::raw::c_uint = 3;
pub const KVM_ARM_TARGET_CORTEX_A53: ::std::os::raw::c_uint = 4;
pub const KVM_ARM_TARGET_GENERIC_V8: ::std::os::raw::c_uint = 5;
pub const KVM_ARM_NUM_TARGETS: ::std::os::raw::c_uint = 6;
pub const KVM_ARM_DEVICE_TYPE_SHIFT: ::std::os::raw::c_uint = 0;
pub const KVM_ARM_DEVICE_TYPE_MASK: ::std::os::raw::c_uint = 65535;
pub const KVM_ARM_DEVICE_ID_SHIFT: ::std::os::raw::c_uint = 16;
pub const KVM_ARM_DEVICE_ID_MASK: ::std::os::raw::c_uint = 4294901760;
pub const KVM_ARM_DEVICE_VGIC_V2: ::std::os::raw::c_uint = 0;
pub const KVM_VGIC_V2_ADDR_TYPE_DIST: ::std::os::raw::c_uint = 0;
pub const KVM_VGIC_V2_ADDR_TYPE_CPU: ::std::os::raw::c_uint = 1;
pub const KVM_VGIC_V2_DIST_SIZE: ::std::os::raw::c_uint = 4096;
pub const KVM_VGIC_V2_CPU_SIZE: ::std::os::raw::c_uint = 8192;
pub const KVM_VGIC_V3_ADDR_TYPE_DIST: ::std::os::raw::c_uint = 2;
pub const KVM_VGIC_V3_ADDR_TYPE_REDIST: ::std::os::raw::c_uint = 3;
pub const KVM_ARM_VCPU_POWER_OFF: ::std::os::raw::c_uint = 0;
pub const KVM_ARM_VCPU_EL1_32BIT: ::std::os::raw::c_uint = 1;
pub const KVM_ARM_VCPU_PSCI_0_2: ::std::os::raw::c_uint = 2;
pub const KVM_ARM_MAX_DBG_REGS: ::std::os::raw::c_uint = 16;
pub const KVM_GUESTDBG_USE_SW_BP: ::std::os::raw::c_uint = 65536;
pub const KVM_GUESTDBG_USE_HW: ::std::os::raw::c_uint = 131072;
pub const KVM_REG_ARM_COPROC_MASK: ::std::os::raw::c_uint = 268369920;
pub const KVM_REG_ARM_COPROC_SHIFT: ::std::os::raw::c_uint = 16;
pub const KVM_REG_ARM_CORE: ::std::os::raw::c_uint = 1048576;
pub const KVM_REG_ARM_DEMUX: ::std::os::raw::c_uint = 1114112;
pub const KVM_REG_ARM_DEMUX_ID_MASK: ::std::os::raw::c_uint = 65280;
pub const KVM_REG_ARM_DEMUX_ID_SHIFT: ::std::os::raw::c_uint = 8;
pub const KVM_REG_ARM_DEMUX_ID_CCSIDR: ::std::os::raw::c_uint = 0;
pub const KVM_REG_ARM_DEMUX_VAL_MASK: ::std::os::raw::c_uint = 255;
pub const KVM_REG_ARM_DEMUX_VAL_SHIFT: ::std::os::raw::c_uint = 0;
pub const KVM_REG_ARM64_SYSREG: ::std::os::raw::c_uint = 1245184;
pub const KVM_REG_ARM64_SYSREG_OP0_MASK: ::std::os::raw::c_uint = 49152;
pub const KVM_REG_ARM64_SYSREG_OP0_SHIFT: ::std::os::raw::c_uint = 14;
pub const KVM_REG_ARM64_SYSREG_OP1_MASK: ::std::os::raw::c_uint = 14336;
pub const KVM_REG_ARM64_SYSREG_OP1_SHIFT: ::std::os::raw::c_uint = 11;
pub const KVM_REG_ARM64_SYSREG_CRN_MASK: ::std::os::raw::c_uint = 1920;
pub const KVM_REG_ARM64_SYSREG_CRN_SHIFT: ::std::os::raw::c_uint = 7;
pub const KVM_REG_ARM64_SYSREG_CRM_MASK: ::std::os::raw::c_uint = 120;
pub const KVM_REG_ARM64_SYSREG_CRM_SHIFT: ::std::os::raw::c_uint = 3;
pub const KVM_REG_ARM64_SYSREG_OP2_MASK: ::std::os::raw::c_uint = 7;
pub const KVM_REG_ARM64_SYSREG_OP2_SHIFT: ::std::os::raw::c_uint = 0;
pub const KVM_DEV_ARM_VGIC_GRP_ADDR: ::std::os::raw::c_uint = 0;
pub const KVM_DEV_ARM_VGIC_GRP_DIST_REGS: ::std::os::raw::c_uint = 1;
pub const KVM_DEV_ARM_VGIC_GRP_CPU_REGS: ::std::os::raw::c_uint = 2;
pub const KVM_DEV_ARM_VGIC_CPUID_SHIFT: ::std::os::raw::c_uint = 32;
pub const KVM_DEV_ARM_VGIC_CPUID_MASK: ::std::os::raw::c_ulonglong = 1095216660480;
pub const KVM_DEV_ARM_VGIC_OFFSET_SHIFT: ::std::os::raw::c_uint = 0;
pub const KVM_DEV_ARM_VGIC_OFFSET_MASK: ::std::os::raw::c_uint = 4294967295;
pub const KVM_DEV_ARM_VGIC_GRP_NR_IRQS: ::std::os::raw::c_uint = 3;
pub const KVM_DEV_ARM_VGIC_GRP_CTRL: ::std::os::raw::c_uint = 4;
pub const KVM_DEV_ARM_VGIC_CTRL_INIT: ::std::os::raw::c_uint = 0;
pub const KVM_ARM_IRQ_TYPE_SHIFT: ::std::os::raw::c_uint = 24;
pub const KVM_ARM_IRQ_TYPE_MASK: ::std::os::raw::c_uint = 255;
pub const KVM_ARM_IRQ_VCPU_SHIFT: ::std::os::raw::c_uint = 16;
pub const KVM_ARM_IRQ_VCPU_MASK: ::std::os::raw::c_uint = 255;
pub const KVM_ARM_IRQ_NUM_SHIFT: ::std::os::raw::c_uint = 0;
pub const KVM_ARM_IRQ_NUM_MASK: ::std::os::raw::c_uint = 65535;
pub const KVM_ARM_IRQ_TYPE_CPU: ::std::os::raw::c_uint = 0;
pub const KVM_ARM_IRQ_TYPE_SPI: ::std::os::raw::c_uint = 1;
pub const KVM_ARM_IRQ_TYPE_PPI: ::std::os::raw::c_uint = 2;
pub const KVM_ARM_IRQ_CPU_IRQ: ::std::os::raw::c_uint = 0;
pub const KVM_ARM_IRQ_CPU_FIQ: ::std::os::raw::c_uint = 1;
pub const KVM_ARM_IRQ_GIC_MAX: ::std::os::raw::c_uint = 127;
pub const KVM_NR_IRQCHIPS: ::std::os::raw::c_uint = 1;
pub const KVM_PSCI_FN_BASE: ::std::os::raw::c_uint = 2512501342;
pub const KVM_PSCI_RET_SUCCESS: ::std::os::raw::c_uint = 0;
pub const KVM_PSCI_RET_NI: ::std::os::raw::c_int = -1;
pub const KVM_PSCI_RET_INVAL: ::std::os::raw::c_int = -2;
pub const KVM_PSCI_RET_DENIED: ::std::os::raw::c_int = -3;
pub const KVM_API_VERSION: ::std::os::raw::c_uint = 12;
pub const KVM_TRC_SHIFT: ::std::os::raw::c_uint = 16;
pub const KVM_TRC_ENTRYEXIT: ::std::os::raw::c_uint = 65536;
pub const KVM_TRC_HANDLER: ::std::os::raw::c_uint = 131072;
pub const KVM_TRC_VMENTRY: ::std::os::raw::c_uint = 65537;
pub const KVM_TRC_VMEXIT: ::std::os::raw::c_uint = 65538;
pub const KVM_TRC_PAGE_FAULT: ::std::os::raw::c_uint = 131073;
pub const KVM_TRC_HEAD_SIZE: ::std::os::raw::c_uint = 12;
pub const KVM_TRC_CYCLE_SIZE: ::std::os::raw::c_uint = 8;
pub const KVM_TRC_EXTRA_MAX: ::std::os::raw::c_uint = 7;
pub const KVM_TRC_INJ_VIRQ: ::std::os::raw::c_uint = 131074;
pub const KVM_TRC_REDELIVER_EVT: ::std::os::raw::c_uint = 131075;
pub const KVM_TRC_PEND_INTR: ::std::os::raw::c_uint = 131076;
pub const KVM_TRC_IO_READ: ::std::os::raw::c_uint = 131077;
pub const KVM_TRC_IO_WRITE: ::std::os::raw::c_uint = 131078;
pub const KVM_TRC_CR_READ: ::std::os::raw::c_uint = 131079;
pub const KVM_TRC_CR_WRITE: ::std::os::raw::c_uint = 131080;
pub const KVM_TRC_DR_READ: ::std::os::raw::c_uint = 131081;
pub const KVM_TRC_DR_WRITE: ::std::os::raw::c_uint = 131082;
pub const KVM_TRC_MSR_READ: ::std::os::raw::c_uint = 131083;
pub const KVM_TRC_MSR_WRITE: ::std::os::raw::c_uint = 131084;
pub const KVM_TRC_CPUID: ::std::os::raw::c_uint = 131085;
pub const KVM_TRC_INTR: ::std::os::raw::c_uint = 131086;
pub const KVM_TRC_NMI: ::std::os::raw::c_uint = 131087;
pub const KVM_TRC_VMMCALL: ::std::os::raw::c_uint = 131088;
pub const KVM_TRC_HLT: ::std::os::raw::c_uint = 131089;
pub const KVM_TRC_CLTS: ::std::os::raw::c_uint = 131090;
pub const KVM_TRC_LMSW: ::std::os::raw::c_uint = 131091;
pub const KVM_TRC_APIC_ACCESS: ::std::os::raw::c_uint = 131092;
pub const KVM_TRC_TDP_FAULT: ::std::os::raw::c_uint = 131093;
pub const KVM_TRC_GTLB_WRITE: ::std::os::raw::c_uint = 131094;
pub const KVM_TRC_STLB_WRITE: ::std::os::raw::c_uint = 131095;
pub const KVM_TRC_STLB_INVAL: ::std::os::raw::c_uint = 131096;
pub const KVM_TRC_PPC_INSTR: ::std::os::raw::c_uint = 131097;
pub const KVM_MEM_LOG_DIRTY_PAGES: ::std::os::raw::c_uint = 1;
pub const KVM_MEM_READONLY: ::std::os::raw::c_uint = 2;
pub const KVM_PIT_SPEAKER_DUMMY: ::std::os::raw::c_uint = 1;
pub const KVM_S390_GET_SKEYS_NONE: ::std::os::raw::c_uint = 1;
pub const KVM_S390_SKEYS_MAX: ::std::os::raw::c_uint = 1048576;
pub const KVM_EXIT_UNKNOWN: ::std::os::raw::c_uint = 0;
pub const KVM_EXIT_EXCEPTION: ::std::os::raw::c_uint = 1;
pub const KVM_EXIT_IO: ::std::os::raw::c_uint = 2;
pub const KVM_EXIT_HYPERCALL: ::std::os::raw::c_uint = 3;
pub const KVM_EXIT_DEBUG: ::std::os::raw::c_uint = 4;
pub const KVM_EXIT_HLT: ::std::os::raw::c_uint = 5;
pub const KVM_EXIT_MMIO: ::std::os::raw::c_uint = 6;
pub const KVM_EXIT_IRQ_WINDOW_OPEN: ::std::os::raw::c_uint = 7;
pub const KVM_EXIT_SHUTDOWN: ::std::os::raw::c_uint = 8;
pub const KVM_EXIT_FAIL_ENTRY: ::std::os::raw::c_uint = 9;
pub const KVM_EXIT_INTR: ::std::os::raw::c_uint = 10;
pub const KVM_EXIT_SET_TPR: ::std::os::raw::c_uint = 11;
pub const KVM_EXIT_TPR_ACCESS: ::std::os::raw::c_uint = 12;
pub const KVM_EXIT_S390_SIEIC: ::std::os::raw::c_uint = 13;
pub const KVM_EXIT_S390_RESET: ::std::os::raw::c_uint = 14;
pub const KVM_EXIT_DCR: ::std::os::raw::c_uint = 15;
pub const KVM_EXIT_NMI: ::std::os::raw::c_uint = 16;
pub const KVM_EXIT_INTERNAL_ERROR: ::std::os::raw::c_uint = 17;
pub const KVM_EXIT_OSI: ::std::os::raw::c_uint = 18;
pub const KVM_EXIT_PAPR_HCALL: ::std::os::raw::c_uint = 19;
pub const KVM_EXIT_S390_UCONTROL: ::std::os::raw::c_uint = 20;
pub const KVM_EXIT_WATCHDOG: ::std::os::raw::c_uint = 21;
pub const KVM_EXIT_S390_TSCH: ::std::os::raw::c_uint = 22;
pub const KVM_EXIT_EPR: ::std::os::raw::c_uint = 23;
pub const KVM_EXIT_SYSTEM_EVENT: ::std::os::raw::c_uint = 24;
pub const KVM_EXIT_S390_STSI: ::std::os::raw::c_uint = 25;
pub const KVM_EXIT_IOAPIC_EOI: ::std::os::raw::c_uint = 26;
pub const KVM_INTERNAL_ERROR_EMULATION: ::std::os::raw::c_uint = 1;
pub const KVM_INTERNAL_ERROR_SIMUL_EX: ::std::os::raw::c_uint = 2;
pub const KVM_INTERNAL_ERROR_DELIVERY_EV: ::std::os::raw::c_uint = 3;
pub const KVM_EXIT_IO_IN: ::std::os::raw::c_uint = 0;
pub const KVM_EXIT_IO_OUT: ::std::os::raw::c_uint = 1;
pub const KVM_S390_RESET_POR: ::std::os::raw::c_uint = 1;
pub const KVM_S390_RESET_CLEAR: ::std::os::raw::c_uint = 2;
pub const KVM_S390_RESET_SUBSYSTEM: ::std::os::raw::c_uint = 4;
pub const KVM_S390_RESET_CPU_INIT: ::std::os::raw::c_uint = 8;
pub const KVM_S390_RESET_IPL: ::std::os::raw::c_uint = 16;
pub const KVM_SYSTEM_EVENT_SHUTDOWN: ::std::os::raw::c_uint = 1;
pub const KVM_SYSTEM_EVENT_RESET: ::std::os::raw::c_uint = 2;
pub const KVM_SYSTEM_EVENT_CRASH: ::std::os::raw::c_uint = 3;
pub const KVM_S390_MEMOP_LOGICAL_READ: ::std::os::raw::c_uint = 0;
pub const KVM_S390_MEMOP_LOGICAL_WRITE: ::std::os::raw::c_uint = 1;
pub const KVM_S390_MEMOP_F_CHECK_ONLY: ::std::os::raw::c_uint = 1;
pub const KVM_S390_MEMOP_F_INJECT_EXCEPTION: ::std::os::raw::c_uint = 2;
pub const KVM_MP_STATE_RUNNABLE: ::std::os::raw::c_uint = 0;
pub const KVM_MP_STATE_UNINITIALIZED: ::std::os::raw::c_uint = 1;
pub const KVM_MP_STATE_INIT_RECEIVED: ::std::os::raw::c_uint = 2;
pub const KVM_MP_STATE_HALTED: ::std::os::raw::c_uint = 3;
pub const KVM_MP_STATE_SIPI_RECEIVED: ::std::os::raw::c_uint = 4;
pub const KVM_MP_STATE_STOPPED: ::std::os::raw::c_uint = 5;
pub const KVM_MP_STATE_CHECK_STOP: ::std::os::raw::c_uint = 6;
pub const KVM_MP_STATE_OPERATING: ::std::os::raw::c_uint = 7;
pub const KVM_MP_STATE_LOAD: ::std::os::raw::c_uint = 8;
pub const KVM_S390_SIGP_STOP: ::std::os::raw::c_uint = 4294836224;
pub const KVM_S390_PROGRAM_INT: ::std::os::raw::c_uint = 4294836225;
pub const KVM_S390_SIGP_SET_PREFIX: ::std::os::raw::c_uint = 4294836226;
pub const KVM_S390_RESTART: ::std::os::raw::c_uint = 4294836227;
pub const KVM_S390_INT_PFAULT_INIT: ::std::os::raw::c_uint = 4294836228;
pub const KVM_S390_INT_PFAULT_DONE: ::std::os::raw::c_uint = 4294836229;
pub const KVM_S390_MCHK: ::std::os::raw::c_uint = 4294840320;
pub const KVM_S390_INT_CLOCK_COMP: ::std::os::raw::c_uint = 4294905860;
pub const KVM_S390_INT_CPU_TIMER: ::std::os::raw::c_uint = 4294905861;
pub const KVM_S390_INT_VIRTIO: ::std::os::raw::c_uint = 4294911491;
pub const KVM_S390_INT_SERVICE: ::std::os::raw::c_uint = 4294910977;
pub const KVM_S390_INT_EMERGENCY: ::std::os::raw::c_uint = 4294906369;
pub const KVM_S390_INT_EXTERNAL_CALL: ::std::os::raw::c_uint = 4294906370;
pub const KVM_S390_INT_IO_MIN: ::std::os::raw::c_uint = 0;
pub const KVM_S390_INT_IO_MAX: ::std::os::raw::c_uint = 4294836223;
pub const KVM_S390_INT_IO_AI_MASK: ::std::os::raw::c_uint = 67108864;
pub const KVM_S390_STOP_FLAG_STORE_STATUS: ::std::os::raw::c_uint = 1;
pub const KVM_GUESTDBG_ENABLE: ::std::os::raw::c_uint = 1;
pub const KVM_GUESTDBG_SINGLESTEP: ::std::os::raw::c_uint = 2;
pub const KVM_PPC_PAGE_SIZES_MAX_SZ: ::std::os::raw::c_uint = 8;
pub const KVM_PPC_PAGE_SIZES_REAL: ::std::os::raw::c_uint = 1;
pub const KVM_PPC_1T_SEGMENTS: ::std::os::raw::c_uint = 2;
pub const KVM_PPC_PVINFO_FLAGS_EV_IDLE: ::std::os::raw::c_uint = 1;
pub const KVMIO: ::std::os::raw::c_uint = 174;
pub const KVM_VM_S390_UCONTROL: ::std::os::raw::c_uint = 1;
pub const KVM_VM_PPC_HV: ::std::os::raw::c_uint = 1;
pub const KVM_VM_PPC_PR: ::std::os::raw::c_uint = 2;
pub const KVM_S390_SIE_PAGE_OFFSET: ::std::os::raw::c_uint = 1;
pub const KVM_CAP_IRQCHIP: ::std::os::raw::c_uint = 0;
pub const KVM_CAP_HLT: ::std::os::raw::c_uint = 1;
pub const KVM_CAP_MMU_SHADOW_CACHE_CONTROL: ::std::os::raw::c_uint = 2;
pub const KVM_CAP_USER_MEMORY: ::std::os::raw::c_uint = 3;
pub const KVM_CAP_SET_TSS_ADDR: ::std::os::raw::c_uint = 4;
pub const KVM_CAP_VAPIC: ::std::os::raw::c_uint = 6;
pub const KVM_CAP_EXT_CPUID: ::std::os::raw::c_uint = 7;
pub const KVM_CAP_CLOCKSOURCE: ::std::os::raw::c_uint = 8;
pub const KVM_CAP_NR_VCPUS: ::std::os::raw::c_uint = 9;
pub const KVM_CAP_NR_MEMSLOTS: ::std::os::raw::c_uint = 10;
pub const KVM_CAP_PIT: ::std::os::raw::c_uint = 11;
pub const KVM_CAP_NOP_IO_DELAY: ::std::os::raw::c_uint = 12;
pub const KVM_CAP_PV_MMU: ::std::os::raw::c_uint = 13;
pub const KVM_CAP_MP_STATE: ::std::os::raw::c_uint = 14;
pub const KVM_CAP_COALESCED_MMIO: ::std::os::raw::c_uint = 15;
pub const KVM_CAP_SYNC_MMU: ::std::os::raw::c_uint = 16;
pub const KVM_CAP_IOMMU: ::std::os::raw::c_uint = 18;
pub const KVM_CAP_DESTROY_MEMORY_REGION_WORKS: ::std::os::raw::c_uint = 21;
pub const KVM_CAP_USER_NMI: ::std::os::raw::c_uint = 22;
pub const KVM_CAP_SET_GUEST_DEBUG: ::std::os::raw::c_uint = 23;
pub const KVM_CAP_IRQ_ROUTING: ::std::os::raw::c_uint = 25;
pub const KVM_CAP_IRQ_INJECT_STATUS: ::std::os::raw::c_uint = 26;
pub const KVM_CAP_ASSIGN_DEV_IRQ: ::std::os::raw::c_uint = 29;
pub const KVM_CAP_JOIN_MEMORY_REGIONS_WORKS: ::std::os::raw::c_uint = 30;
pub const KVM_CAP_IRQFD: ::std::os::raw::c_uint = 32;
pub const KVM_CAP_SET_BOOT_CPU_ID: ::std::os::raw::c_uint = 34;
pub const KVM_CAP_IOEVENTFD: ::std::os::raw::c_uint = 36;
pub const KVM_CAP_SET_IDENTITY_MAP_ADDR: ::std::os::raw::c_uint = 37;
pub const KVM_CAP_ADJUST_CLOCK: ::std::os::raw::c_uint = 39;
pub const KVM_CAP_INTERNAL_ERROR_DATA: ::std::os::raw::c_uint = 40;
pub const KVM_CAP_S390_PSW: ::std::os::raw::c_uint = 42;
pub const KVM_CAP_PPC_SEGSTATE: ::std::os::raw::c_uint = 43;
pub const KVM_CAP_HYPERV: ::std::os::raw::c_uint = 44;
pub const KVM_CAP_HYPERV_VAPIC: ::std::os::raw::c_uint = 45;
pub const KVM_CAP_HYPERV_SPIN: ::std::os::raw::c_uint = 46;
pub const KVM_CAP_PCI_SEGMENT: ::std::os::raw::c_uint = 47;
pub const KVM_CAP_PPC_PAIRED_SINGLES: ::std::os::raw::c_uint = 48;
pub const KVM_CAP_INTR_SHADOW: ::std::os::raw::c_uint = 49;
pub const KVM_CAP_X86_ROBUST_SINGLESTEP: ::std::os::raw::c_uint = 51;
pub const KVM_CAP_PPC_OSI: ::std::os::raw::c_uint = 52;
pub const KVM_CAP_PPC_UNSET_IRQ: ::std::os::raw::c_uint = 53;
pub const KVM_CAP_ENABLE_CAP: ::std::os::raw::c_uint = 54;
pub const KVM_CAP_PPC_GET_PVINFO: ::std::os::raw::c_uint = 57;
pub const KVM_CAP_PPC_IRQ_LEVEL: ::std::os::raw::c_uint = 58;
pub const KVM_CAP_ASYNC_PF: ::std::os::raw::c_uint = 59;
pub const KVM_CAP_TSC_CONTROL: ::std::os::raw::c_uint = 60;
pub const KVM_CAP_GET_TSC_KHZ: ::std::os::raw::c_uint = 61;
pub const KVM_CAP_PPC_BOOKE_SREGS: ::std::os::raw::c_uint = 62;
pub const KVM_CAP_SPAPR_TCE: ::std::os::raw::c_uint = 63;
pub const KVM_CAP_PPC_SMT: ::std::os::raw::c_uint = 64;
pub const KVM_CAP_PPC_RMA: ::std::os::raw::c_uint = 65;
pub const KVM_CAP_MAX_VCPUS: ::std::os::raw::c_uint = 66;
pub const KVM_CAP_PPC_HIOR: ::std::os::raw::c_uint = 67;
pub const KVM_CAP_PPC_PAPR: ::std::os::raw::c_uint = 68;
pub const KVM_CAP_SW_TLB: ::std::os::raw::c_uint = 69;
pub const KVM_CAP_ONE_REG: ::std::os::raw::c_uint = 70;
pub const KVM_CAP_S390_GMAP: ::std::os::raw::c_uint = 71;
pub const KVM_CAP_TSC_DEADLINE_TIMER: ::std::os::raw::c_uint = 72;
pub const KVM_CAP_S390_UCONTROL: ::std::os::raw::c_uint = 73;
pub const KVM_CAP_SYNC_REGS: ::std::os::raw::c_uint = 74;
pub const KVM_CAP_PCI_2_3: ::std::os::raw::c_uint = 75;
pub const KVM_CAP_KVMCLOCK_CTRL: ::std::os::raw::c_uint = 76;
pub const KVM_CAP_SIGNAL_MSI: ::std::os::raw::c_uint = 77;
pub const KVM_CAP_PPC_GET_SMMU_INFO: ::std::os::raw::c_uint = 78;
pub const KVM_CAP_S390_COW: ::std::os::raw::c_uint = 79;
pub const KVM_CAP_PPC_ALLOC_HTAB: ::std::os::raw::c_uint = 80;
pub const KVM_CAP_READONLY_MEM: ::std::os::raw::c_uint = 81;
pub const KVM_CAP_IRQFD_RESAMPLE: ::std::os::raw::c_uint = 82;
pub const KVM_CAP_PPC_BOOKE_WATCHDOG: ::std::os::raw::c_uint = 83;
pub const KVM_CAP_PPC_HTAB_FD: ::std::os::raw::c_uint = 84;
pub const KVM_CAP_S390_CSS_SUPPORT: ::std::os::raw::c_uint = 85;
pub const KVM_CAP_PPC_EPR: ::std::os::raw::c_uint = 86;
pub const KVM_CAP_ARM_PSCI: ::std::os::raw::c_uint = 87;
pub const KVM_CAP_ARM_SET_DEVICE_ADDR: ::std::os::raw::c_uint = 88;
pub const KVM_CAP_DEVICE_CTRL: ::std::os::raw::c_uint = 89;
pub const KVM_CAP_IRQ_MPIC: ::std::os::raw::c_uint = 90;
pub const KVM_CAP_PPC_RTAS: ::std::os::raw::c_uint = 91;
pub const KVM_CAP_IRQ_XICS: ::std::os::raw::c_uint = 92;
pub const KVM_CAP_ARM_EL1_32BIT: ::std::os::raw::c_uint = 93;
pub const KVM_CAP_SPAPR_MULTITCE: ::std::os::raw::c_uint = 94;
pub const KVM_CAP_EXT_EMUL_CPUID: ::std::os::raw::c_uint = 95;
pub const KVM_CAP_HYPERV_TIME: ::std::os::raw::c_uint = 96;
pub const KVM_CAP_IOAPIC_POLARITY_IGNORED: ::std::os::raw::c_uint = 97;
pub const KVM_CAP_ENABLE_CAP_VM: ::std::os::raw::c_uint = 98;
pub const KVM_CAP_S390_IRQCHIP: ::std::os::raw::c_uint = 99;
pub const KVM_CAP_IOEVENTFD_NO_LENGTH: ::std::os::raw::c_uint = 100;
pub const KVM_CAP_VM_ATTRIBUTES: ::std::os::raw::c_uint = 101;
pub const KVM_CAP_ARM_PSCI_0_2: ::std::os::raw::c_uint = 102;
pub const KVM_CAP_PPC_FIXUP_HCALL: ::std::os::raw::c_uint = 103;
pub const KVM_CAP_PPC_ENABLE_HCALL: ::std::os::raw::c_uint = 104;
pub const KVM_CAP_CHECK_EXTENSION_VM: ::std::os::raw::c_uint = 105;
pub const KVM_CAP_S390_USER_SIGP: ::std::os::raw::c_uint = 106;
pub const KVM_CAP_S390_VECTOR_REGISTERS: ::std::os::raw::c_uint = 107;
pub const KVM_CAP_S390_MEM_OP: ::std::os::raw::c_uint = 108;
pub const KVM_CAP_S390_USER_STSI: ::std::os::raw::c_uint = 109;
pub const KVM_CAP_S390_SKEYS: ::std::os::raw::c_uint = 110;
pub const KVM_CAP_MIPS_FPU: ::std::os::raw::c_uint = 111;
pub const KVM_CAP_MIPS_MSA: ::std::os::raw::c_uint = 112;
pub const KVM_CAP_S390_INJECT_IRQ: ::std::os::raw::c_uint = 113;
pub const KVM_CAP_S390_IRQ_STATE: ::std::os::raw::c_uint = 114;
pub const KVM_CAP_PPC_HWRNG: ::std::os::raw::c_uint = 115;
pub const KVM_CAP_DISABLE_QUIRKS: ::std::os::raw::c_uint = 116;
pub const KVM_CAP_X86_SMM: ::std::os::raw::c_uint = 117;
pub const KVM_CAP_MULTI_ADDRESS_SPACE: ::std::os::raw::c_uint = 118;
pub const KVM_CAP_GUEST_DEBUG_HW_BPS: ::std::os::raw::c_uint = 119;
pub const KVM_CAP_GUEST_DEBUG_HW_WPS: ::std::os::raw::c_uint = 120;
pub const KVM_CAP_SPLIT_IRQCHIP: ::std::os::raw::c_uint = 121;
pub const KVM_CAP_IOEVENTFD_ANY_LENGTH: ::std::os::raw::c_uint = 122;
pub const KVM_IRQ_ROUTING_IRQCHIP: ::std::os::raw::c_uint = 1;
pub const KVM_IRQ_ROUTING_MSI: ::std::os::raw::c_uint = 2;
pub const KVM_IRQ_ROUTING_S390_ADAPTER: ::std::os::raw::c_uint = 3;
pub const KVM_IRQFD_FLAG_DEASSIGN: ::std::os::raw::c_uint = 1;
pub const KVM_IRQFD_FLAG_RESAMPLE: ::std::os::raw::c_uint = 2;
pub const KVM_MMU_FSL_BOOKE_NOHV: ::std::os::raw::c_uint = 0;
pub const KVM_MMU_FSL_BOOKE_HV: ::std::os::raw::c_uint = 1;
pub const KVM_REG_ARCH_MASK: ::std::os::raw::c_longlong = -72057594037927936;
pub const KVM_REG_GENERIC: ::std::os::raw::c_uint = 0;
pub const KVM_REG_PPC: ::std::os::raw::c_ulonglong = 1152921504606846976;
pub const KVM_REG_X86: ::std::os::raw::c_ulonglong = 2305843009213693952;
pub const KVM_REG_IA64: ::std::os::raw::c_ulonglong = 3458764513820540928;
pub const KVM_REG_ARM: ::std::os::raw::c_ulonglong = 4611686018427387904;
pub const KVM_REG_S390: ::std::os::raw::c_ulonglong = 5764607523034234880;
pub const KVM_REG_ARM64: ::std::os::raw::c_ulonglong = 6917529027641081856;
pub const KVM_REG_MIPS: ::std::os::raw::c_ulonglong = 8070450532247928832;
pub const KVM_REG_SIZE_SHIFT: ::std::os::raw::c_uint = 52;
pub const KVM_REG_SIZE_MASK: ::std::os::raw::c_ulonglong = 67553994410557440;
pub const KVM_REG_SIZE_U8: ::std::os::raw::c_uint = 0;
pub const KVM_REG_SIZE_U16: ::std::os::raw::c_ulonglong = 4503599627370496;
pub const KVM_REG_SIZE_U32: ::std::os::raw::c_ulonglong = 9007199254740992;
pub const KVM_REG_SIZE_U64: ::std::os::raw::c_ulonglong = 13510798882111488;
pub const KVM_REG_SIZE_U128: ::std::os::raw::c_ulonglong = 18014398509481984;
pub const KVM_REG_SIZE_U256: ::std::os::raw::c_ulonglong = 22517998136852480;
pub const KVM_REG_SIZE_U512: ::std::os::raw::c_ulonglong = 27021597764222976;
pub const KVM_REG_SIZE_U1024: ::std::os::raw::c_ulonglong = 31525197391593472;
pub const KVM_CREATE_DEVICE_TEST: ::std::os::raw::c_uint = 1;
pub const KVM_DEV_VFIO_GROUP: ::std::os::raw::c_uint = 1;
pub const KVM_DEV_VFIO_GROUP_ADD: ::std::os::raw::c_uint = 1;
pub const KVM_DEV_VFIO_GROUP_DEL: ::std::os::raw::c_uint = 2;
pub const KVM_S390_STORE_STATUS_NOADDR: ::std::os::raw::c_int = -1;
pub const KVM_S390_STORE_STATUS_PREFIXED: ::std::os::raw::c_int = -2;
pub const KVM_DEV_ASSIGN_ENABLE_IOMMU: ::std::os::raw::c_uint = 1;
pub const KVM_DEV_ASSIGN_PCI_2_3: ::std::os::raw::c_uint = 2;
pub const KVM_DEV_ASSIGN_MASK_INTX: ::std::os::raw::c_uint = 4;
pub const KVM_DEV_IRQ_HOST_INTX: ::std::os::raw::c_uint = 1;
pub const KVM_DEV_IRQ_HOST_MSI: ::std::os::raw::c_uint = 2;
pub const KVM_DEV_IRQ_HOST_MSIX: ::std::os::raw::c_uint = 4;
pub const KVM_DEV_IRQ_GUEST_INTX: ::std::os::raw::c_uint = 256;
pub const KVM_DEV_IRQ_GUEST_MSI: ::std::os::raw::c_uint = 512;
pub const KVM_DEV_IRQ_GUEST_MSIX: ::std::os::raw::c_uint = 1024;
pub const KVM_DEV_IRQ_HOST_MASK: ::std::os::raw::c_uint = 255;
pub const KVM_DEV_IRQ_GUEST_MASK: ::std::os::raw::c_uint = 65280;
pub const KVM_MAX_MSIX_PER_DEV: ::std::os::raw::c_uint = 256;
pub type __s8 = ::std::os::raw::c_schar;
pub type __u8 = ::std::os::raw::c_uchar;
pub type __s16 = ::std::os::raw::c_short;
pub type __u16 = ::std::os::raw::c_ushort;
pub type __s32 = ::std::os::raw::c_int;
pub type __u32 = ::std::os::raw::c_uint;
pub type __s64 = ::std::os::raw::c_longlong;
pub type __u64 = ::std::os::raw::c_ulonglong;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __kernel_fd_set {
pub fds_bits: [::std::os::raw::c_ulong; 16usize],
}
#[test]
fn bindgen_test_layout___kernel_fd_set() {
assert_eq!(
::std::mem::size_of::<__kernel_fd_set>(),
128usize,
concat!("Size of: ", stringify!(__kernel_fd_set))
);
assert_eq!(
::std::mem::align_of::<__kernel_fd_set>(),
8usize,
concat!("Alignment of ", stringify!(__kernel_fd_set))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__kernel_fd_set>())).fds_bits as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__kernel_fd_set),
"::",
stringify!(fds_bits)
)
);
}
pub type __kernel_sighandler_t =
::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>;
pub type __kernel_key_t = ::std::os::raw::c_int;
pub type __kernel_mqd_t = ::std::os::raw::c_int;
pub type __kernel_old_uid_t = ::std::os::raw::c_ushort;
pub type __kernel_old_gid_t = ::std::os::raw::c_ushort;
pub type __kernel_long_t = ::std::os::raw::c_long;
pub type __kernel_ulong_t = ::std::os::raw::c_ulong;
pub type __kernel_ino_t = __kernel_ulong_t;
pub type __kernel_mode_t = ::std::os::raw::c_uint;
pub type __kernel_pid_t = ::std::os::raw::c_int;
pub type __kernel_ipc_pid_t = ::std::os::raw::c_int;
pub type __kernel_uid_t = ::std::os::raw::c_uint;
pub type __kernel_gid_t = ::std::os::raw::c_uint;
pub type __kernel_suseconds_t = __kernel_long_t;
pub type __kernel_daddr_t = ::std::os::raw::c_int;
pub type __kernel_uid32_t = ::std::os::raw::c_uint;
pub type __kernel_gid32_t = ::std::os::raw::c_uint;
pub type __kernel_old_dev_t = ::std::os::raw::c_uint;
pub type __kernel_size_t = __kernel_ulong_t;
pub type __kernel_ssize_t = __kernel_long_t;
pub type __kernel_ptrdiff_t = __kernel_long_t;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __kernel_fsid_t {
pub val: [::std::os::raw::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___kernel_fsid_t() {
assert_eq!(
::std::mem::size_of::<__kernel_fsid_t>(),
8usize,
concat!("Size of: ", stringify!(__kernel_fsid_t))
);
assert_eq!(
::std::mem::align_of::<__kernel_fsid_t>(),
4usize,
concat!("Alignment of ", stringify!(__kernel_fsid_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__kernel_fsid_t>())).val as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__kernel_fsid_t),
"::",
stringify!(val)
)
);
}
pub type __kernel_off_t = __kernel_long_t;
pub type __kernel_loff_t = ::std::os::raw::c_longlong;
pub type __kernel_time_t = __kernel_long_t;
pub type __kernel_clock_t = __kernel_long_t;
pub type __kernel_timer_t = ::std::os::raw::c_int;
pub type __kernel_clockid_t = ::std::os::raw::c_int;
pub type __kernel_caddr_t = *mut ::std::os::raw::c_char;
pub type __kernel_uid16_t = ::std::os::raw::c_ushort;
pub type __kernel_gid16_t = ::std::os::raw::c_ushort;
pub type __le16 = __u16;
pub type __be16 = __u16;
pub type __le32 = __u32;
pub type __be32 = __u32;
pub type __le64 = __u64;
pub type __be64 = __u64;
pub type __sum16 = __u16;
pub type __wsum = __u32;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct user_pt_regs {
pub regs: [__u64; 31usize],
pub sp: __u64,
pub pc: __u64,
pub pstate: __u64,
}
#[test]
fn bindgen_test_layout_user_pt_regs() {
assert_eq!(
::std::mem::size_of::<user_pt_regs>(),
272usize,
concat!("Size of: ", stringify!(user_pt_regs))
);
assert_eq!(
::std::mem::align_of::<user_pt_regs>(),
8usize,
concat!("Alignment of ", stringify!(user_pt_regs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<user_pt_regs>())).regs as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(user_pt_regs),
"::",
stringify!(regs)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<user_pt_regs>())).sp as *const _ as usize },
248usize,
concat!(
"Offset of field: ",
stringify!(user_pt_regs),
"::",
stringify!(sp)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<user_pt_regs>())).pc as *const _ as usize },
256usize,
concat!(
"Offset of field: ",
stringify!(user_pt_regs),
"::",
stringify!(pc)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<user_pt_regs>())).pstate as *const _ as usize },
264usize,
concat!(
"Offset of field: ",
stringify!(user_pt_regs),
"::",
stringify!(pstate)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct user_fpsimd_state {
pub vregs: [__uint128_t; 32usize],
pub fpsr: __u32,
pub fpcr: __u32,
pub __bindgen_padding_0: u64,
}
#[test]
fn bindgen_test_layout_user_fpsimd_state() {
assert_eq!(
::std::mem::size_of::<user_fpsimd_state>(),
528usize,
concat!("Size of: ", stringify!(user_fpsimd_state))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<user_fpsimd_state>())).vregs as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(user_fpsimd_state),
"::",
stringify!(vregs)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<user_fpsimd_state>())).fpsr as *const _ as usize },
512usize,
concat!(
"Offset of field: ",
stringify!(user_fpsimd_state),
"::",
stringify!(fpsr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<user_fpsimd_state>())).fpcr as *const _ as usize },
516usize,
concat!(
"Offset of field: ",
stringify!(user_fpsimd_state),
"::",
stringify!(fpcr)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct user_hwdebug_state {
pub dbg_info: __u32,
pub pad: __u32,
pub dbg_regs: [user_hwdebug_state__bindgen_ty_1; 16usize],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct user_hwdebug_state__bindgen_ty_1 {
pub addr: __u64,
pub ctrl: __u32,
pub pad: __u32,
}
#[test]
fn bindgen_test_layout_user_hwdebug_state__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<user_hwdebug_state__bindgen_ty_1>(),
16usize,
concat!("Size of: ", stringify!(user_hwdebug_state__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<user_hwdebug_state__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(user_hwdebug_state__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<user_hwdebug_state__bindgen_ty_1>())).addr as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(user_hwdebug_state__bindgen_ty_1),
"::",
stringify!(addr)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<user_hwdebug_state__bindgen_ty_1>())).ctrl as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(user_hwdebug_state__bindgen_ty_1),
"::",
stringify!(ctrl)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<user_hwdebug_state__bindgen_ty_1>())).pad as *const _ as usize
},
12usize,
concat!(
"Offset of field: ",
stringify!(user_hwdebug_state__bindgen_ty_1),
"::",
stringify!(pad)
)
);
}
#[test]
fn bindgen_test_layout_user_hwdebug_state() {
assert_eq!(
::std::mem::size_of::<user_hwdebug_state>(),
264usize,
concat!("Size of: ", stringify!(user_hwdebug_state))
);
assert_eq!(
::std::mem::align_of::<user_hwdebug_state>(),
8usize,
concat!("Alignment of ", stringify!(user_hwdebug_state))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<user_hwdebug_state>())).dbg_info as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(user_hwdebug_state),
"::",
stringify!(dbg_info)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<user_hwdebug_state>())).pad as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(user_hwdebug_state),
"::",
stringify!(pad)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<user_hwdebug_state>())).dbg_regs as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(user_hwdebug_state),
"::",
stringify!(dbg_regs)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_regs {
pub regs: user_pt_regs,
pub sp_el1: __u64,
pub elr_el1: __u64,
pub spsr: [__u64; 5usize],
pub __bindgen_padding_0: u64,
pub fp_regs: user_fpsimd_state,
}
#[test]
fn bindgen_test_layout_kvm_regs() {
assert_eq!(
::std::mem::size_of::<kvm_regs>(),
864usize,
concat!("Size of: ", stringify!(kvm_regs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_regs>())).regs as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_regs),
"::",
stringify!(regs)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_regs>())).sp_el1 as *const _ as usize },
272usize,
concat!(
"Offset of field: ",
stringify!(kvm_regs),
"::",
stringify!(sp_el1)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_regs>())).elr_el1 as *const _ as usize },
280usize,
concat!(
"Offset of field: ",
stringify!(kvm_regs),
"::",
stringify!(elr_el1)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_regs>())).spsr as *const _ as usize },
288usize,
concat!(
"Offset of field: ",
stringify!(kvm_regs),
"::",
stringify!(spsr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_regs>())).fp_regs as *const _ as usize },
336usize,
concat!(
"Offset of field: ",
stringify!(kvm_regs),
"::",
stringify!(fp_regs)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_vcpu_init {
pub target: __u32,
pub features: [__u32; 7usize],
}
#[test]
fn bindgen_test_layout_kvm_vcpu_init() {
assert_eq!(
::std::mem::size_of::<kvm_vcpu_init>(),
32usize,
concat!("Size of: ", stringify!(kvm_vcpu_init))
);
assert_eq!(
::std::mem::align_of::<kvm_vcpu_init>(),
4usize,
concat!("Alignment of ", stringify!(kvm_vcpu_init))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_vcpu_init>())).target as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_vcpu_init),
"::",
stringify!(target)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_vcpu_init>())).features as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_vcpu_init),
"::",
stringify!(features)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_sregs {}
#[test]
fn bindgen_test_layout_kvm_sregs() {
assert_eq!(
::std::mem::size_of::<kvm_sregs>(),
0usize,
concat!("Size of: ", stringify!(kvm_sregs))
);
assert_eq!(
::std::mem::align_of::<kvm_sregs>(),
1usize,
concat!("Alignment of ", stringify!(kvm_sregs))
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_fpu {}
#[test]
fn bindgen_test_layout_kvm_fpu() {
assert_eq!(
::std::mem::size_of::<kvm_fpu>(),
0usize,
concat!("Size of: ", stringify!(kvm_fpu))
);
assert_eq!(
::std::mem::align_of::<kvm_fpu>(),
1usize,
concat!("Alignment of ", stringify!(kvm_fpu))
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_guest_debug_arch {
pub dbg_bcr: [__u64; 16usize],
pub dbg_bvr: [__u64; 16usize],
pub dbg_wcr: [__u64; 16usize],
pub dbg_wvr: [__u64; 16usize],
}
#[test]
fn bindgen_test_layout_kvm_guest_debug_arch() {
assert_eq!(
::std::mem::size_of::<kvm_guest_debug_arch>(),
512usize,
concat!("Size of: ", stringify!(kvm_guest_debug_arch))
);
assert_eq!(
::std::mem::align_of::<kvm_guest_debug_arch>(),
8usize,
concat!("Alignment of ", stringify!(kvm_guest_debug_arch))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_guest_debug_arch>())).dbg_bcr as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_guest_debug_arch),
"::",
stringify!(dbg_bcr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_guest_debug_arch>())).dbg_bvr as *const _ as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(kvm_guest_debug_arch),
"::",
stringify!(dbg_bvr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_guest_debug_arch>())).dbg_wcr as *const _ as usize },
256usize,
concat!(
"Offset of field: ",
stringify!(kvm_guest_debug_arch),
"::",
stringify!(dbg_wcr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_guest_debug_arch>())).dbg_wvr as *const _ as usize },
384usize,
concat!(
"Offset of field: ",
stringify!(kvm_guest_debug_arch),
"::",
stringify!(dbg_wvr)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_debug_exit_arch {
pub hsr: __u32,
pub far: __u64,
}
#[test]
fn bindgen_test_layout_kvm_debug_exit_arch() {
assert_eq!(
::std::mem::size_of::<kvm_debug_exit_arch>(),
16usize,
concat!("Size of: ", stringify!(kvm_debug_exit_arch))
);
assert_eq!(
::std::mem::align_of::<kvm_debug_exit_arch>(),
8usize,
concat!("Alignment of ", stringify!(kvm_debug_exit_arch))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_debug_exit_arch>())).hsr as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_debug_exit_arch),
"::",
stringify!(hsr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_debug_exit_arch>())).far as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_debug_exit_arch),
"::",
stringify!(far)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_sync_regs {}
#[test]
fn bindgen_test_layout_kvm_sync_regs() {
assert_eq!(
::std::mem::size_of::<kvm_sync_regs>(),
0usize,
concat!("Size of: ", stringify!(kvm_sync_regs))
);
assert_eq!(
::std::mem::align_of::<kvm_sync_regs>(),
1usize,
concat!("Alignment of ", stringify!(kvm_sync_regs))
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_arch_memory_slot {}
#[test]
fn bindgen_test_layout_kvm_arch_memory_slot() {
assert_eq!(
::std::mem::size_of::<kvm_arch_memory_slot>(),
0usize,
concat!("Size of: ", stringify!(kvm_arch_memory_slot))
);
assert_eq!(
::std::mem::align_of::<kvm_arch_memory_slot>(),
1usize,
concat!("Alignment of ", stringify!(kvm_arch_memory_slot))
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_user_trace_setup {
pub buf_size: __u32,
pub buf_nr: __u32,
}
#[test]
fn bindgen_test_layout_kvm_user_trace_setup() {
assert_eq!(
::std::mem::size_of::<kvm_user_trace_setup>(),
8usize,
concat!("Size of: ", stringify!(kvm_user_trace_setup))
);
assert_eq!(
::std::mem::align_of::<kvm_user_trace_setup>(),
4usize,
concat!("Alignment of ", stringify!(kvm_user_trace_setup))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_user_trace_setup>())).buf_size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_user_trace_setup),
"::",
stringify!(buf_size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_user_trace_setup>())).buf_nr as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_user_trace_setup),
"::",
stringify!(buf_nr)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_breakpoint {
pub enabled: __u32,
pub padding: __u32,
pub address: __u64,
}
#[test]
fn bindgen_test_layout_kvm_breakpoint() {
assert_eq!(
::std::mem::size_of::<kvm_breakpoint>(),
16usize,
concat!("Size of: ", stringify!(kvm_breakpoint))
);
assert_eq!(
::std::mem::align_of::<kvm_breakpoint>(),
8usize,
concat!("Alignment of ", stringify!(kvm_breakpoint))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_breakpoint>())).enabled as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_breakpoint),
"::",
stringify!(enabled)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_breakpoint>())).padding as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_breakpoint),
"::",
stringify!(padding)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_breakpoint>())).address as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_breakpoint),
"::",
stringify!(address)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_debug_guest {
pub enabled: __u32,
pub pad: __u32,
pub breakpoints: [kvm_breakpoint; 4usize],
pub singlestep: __u32,
}
#[test]
fn bindgen_test_layout_kvm_debug_guest() {
assert_eq!(
::std::mem::size_of::<kvm_debug_guest>(),
80usize,
concat!("Size of: ", stringify!(kvm_debug_guest))
);
assert_eq!(
::std::mem::align_of::<kvm_debug_guest>(),
8usize,
concat!("Alignment of ", stringify!(kvm_debug_guest))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_debug_guest>())).enabled as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_debug_guest),
"::",
stringify!(enabled)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_debug_guest>())).pad as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_debug_guest),
"::",
stringify!(pad)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_debug_guest>())).breakpoints as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_debug_guest),
"::",
stringify!(breakpoints)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_debug_guest>())).singlestep as *const _ as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(kvm_debug_guest),
"::",
stringify!(singlestep)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_memory_region {
pub slot: __u32,
pub flags: __u32,
pub guest_phys_addr: __u64,
pub memory_size: __u64,
}
#[test]
fn bindgen_test_layout_kvm_memory_region() {
assert_eq!(
::std::mem::size_of::<kvm_memory_region>(),
24usize,
concat!("Size of: ", stringify!(kvm_memory_region))
);
assert_eq!(
::std::mem::align_of::<kvm_memory_region>(),
8usize,
concat!("Alignment of ", stringify!(kvm_memory_region))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_memory_region>())).slot as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_memory_region),
"::",
stringify!(slot)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_memory_region>())).flags as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_memory_region),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_memory_region>())).guest_phys_addr as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_memory_region),
"::",
stringify!(guest_phys_addr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_memory_region>())).memory_size as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(kvm_memory_region),
"::",
stringify!(memory_size)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_userspace_memory_region {
pub slot: __u32,
pub flags: __u32,
pub guest_phys_addr: __u64,
pub memory_size: __u64,
pub userspace_addr: __u64,
}
#[test]
fn bindgen_test_layout_kvm_userspace_memory_region() {
assert_eq!(
::std::mem::size_of::<kvm_userspace_memory_region>(),
32usize,
concat!("Size of: ", stringify!(kvm_userspace_memory_region))
);
assert_eq!(
::std::mem::align_of::<kvm_userspace_memory_region>(),
8usize,
concat!("Alignment of ", stringify!(kvm_userspace_memory_region))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_userspace_memory_region>())).slot as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_userspace_memory_region),
"::",
stringify!(slot)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_userspace_memory_region>())).flags as *const _ as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_userspace_memory_region),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_userspace_memory_region>())).guest_phys_addr as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_userspace_memory_region),
"::",
stringify!(guest_phys_addr)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_userspace_memory_region>())).memory_size as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(kvm_userspace_memory_region),
"::",
stringify!(memory_size)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_userspace_memory_region>())).userspace_addr as *const _
as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(kvm_userspace_memory_region),
"::",
stringify!(userspace_addr)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct kvm_irq_level {
pub __bindgen_anon_1: kvm_irq_level__bindgen_ty_1,
pub level: __u32,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union kvm_irq_level__bindgen_ty_1 {
pub irq: __u32,
pub status: __s32,
_bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_kvm_irq_level__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<kvm_irq_level__bindgen_ty_1>(),
4usize,
concat!("Size of: ", stringify!(kvm_irq_level__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<kvm_irq_level__bindgen_ty_1>(),
4usize,
concat!("Alignment of ", stringify!(kvm_irq_level__bindgen_ty_1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_irq_level__bindgen_ty_1>())).irq as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_irq_level__bindgen_ty_1),
"::",
stringify!(irq)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_irq_level__bindgen_ty_1>())).status as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_irq_level__bindgen_ty_1),
"::",
stringify!(status)
)
);
}
impl Default for kvm_irq_level__bindgen_ty_1 {
fn default() -> Self {
unsafe { ::std::mem::zeroed() }
}
}
#[test]
fn bindgen_test_layout_kvm_irq_level() {
assert_eq!(
::std::mem::size_of::<kvm_irq_level>(),
8usize,
concat!("Size of: ", stringify!(kvm_irq_level))
);
assert_eq!(
::std::mem::align_of::<kvm_irq_level>(),
4usize,
concat!("Alignment of ", stringify!(kvm_irq_level))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_irq_level>())).level as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_irq_level),
"::",
stringify!(level)
)
);
}
impl Default for kvm_irq_level {
fn default() -> Self {
unsafe { ::std::mem::zeroed() }
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct kvm_irqchip {
pub chip_id: __u32,
pub pad: __u32,
pub chip: kvm_irqchip__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union kvm_irqchip__bindgen_ty_1 {
pub dummy: [::std::os::raw::c_char; 512usize],
_bindgen_union_align: [u8; 512usize],
}
#[test]
fn bindgen_test_layout_kvm_irqchip__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<kvm_irqchip__bindgen_ty_1>(),
512usize,
concat!("Size of: ", stringify!(kvm_irqchip__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<kvm_irqchip__bindgen_ty_1>(),
1usize,
concat!("Alignment of ", stringify!(kvm_irqchip__bindgen_ty_1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_irqchip__bindgen_ty_1>())).dummy as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_irqchip__bindgen_ty_1),
"::",
stringify!(dummy)
)
);
}
impl Default for kvm_irqchip__bindgen_ty_1 {
fn default() -> Self {
unsafe { ::std::mem::zeroed() }
}
}
#[test]
fn bindgen_test_layout_kvm_irqchip() {
assert_eq!(
::std::mem::size_of::<kvm_irqchip>(),
520usize,
concat!("Size of: ", stringify!(kvm_irqchip))
);
assert_eq!(
::std::mem::align_of::<kvm_irqchip>(),
4usize,
concat!("Alignment of ", stringify!(kvm_irqchip))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_irqchip>())).chip_id as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_irqchip),
"::",
stringify!(chip_id)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_irqchip>())).pad as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_irqchip),
"::",
stringify!(pad)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_irqchip>())).chip as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_irqchip),
"::",
stringify!(chip)
)
);
}
impl Default for kvm_irqchip {
fn default() -> Self {
unsafe { ::std::mem::zeroed() }
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_pit_config {
pub flags: __u32,
pub pad: [__u32; 15usize],
}
#[test]
fn bindgen_test_layout_kvm_pit_config() {
assert_eq!(
::std::mem::size_of::<kvm_pit_config>(),
64usize,
concat!("Size of: ", stringify!(kvm_pit_config))
);
assert_eq!(
::std::mem::align_of::<kvm_pit_config>(),
4usize,
concat!("Alignment of ", stringify!(kvm_pit_config))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_pit_config>())).flags as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_pit_config),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_pit_config>())).pad as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_pit_config),
"::",
stringify!(pad)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_s390_skeys {
pub start_gfn: __u64,
pub count: __u64,
pub skeydata_addr: __u64,
pub flags: __u32,
pub reserved: [__u32; 9usize],
}
#[test]
fn bindgen_test_layout_kvm_s390_skeys() {
assert_eq!(
::std::mem::size_of::<kvm_s390_skeys>(),
64usize,
concat!("Size of: ", stringify!(kvm_s390_skeys))
);
assert_eq!(
::std::mem::align_of::<kvm_s390_skeys>(),
8usize,
concat!("Alignment of ", stringify!(kvm_s390_skeys))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_s390_skeys>())).start_gfn as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_s390_skeys),
"::",
stringify!(start_gfn)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_s390_skeys>())).count as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_s390_skeys),
"::",
stringify!(count)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_s390_skeys>())).skeydata_addr as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(kvm_s390_skeys),
"::",
stringify!(skeydata_addr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_s390_skeys>())).flags as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(kvm_s390_skeys),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<kvm_s390_skeys>())).reserved as *const _ as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(kvm_s390_skeys),
"::",
stringify!(reserved)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct kvm_run {
pub request_interrupt_window: __u8,
pub padding1: [__u8; 7usize],
pub exit_reason: __u32,
pub ready_for_interrupt_injection: __u8,
pub if_flag: __u8,
pub flags: __u16,
pub cr8: __u64,
pub apic_base: __u64,
pub __bindgen_anon_1: kvm_run__bindgen_ty_1,
pub kvm_valid_regs: __u64,
pub kvm_dirty_regs: __u64,
pub s: kvm_run__bindgen_ty_2,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_run__bindgen_ty_1__bindgen_ty_1 {
pub hardware_exit_reason: __u64,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union kvm_run__bindgen_ty_1 {
pub hw: kvm_run__bindgen_ty_1__bindgen_ty_1,
pub fail_entry: kvm_run__bindgen_ty_1__bindgen_ty_2,
pub ex: kvm_run__bindgen_ty_1__bindgen_ty_3,
pub io: kvm_run__bindgen_ty_1__bindgen_ty_4,
pub debug: kvm_run__bindgen_ty_1__bindgen_ty_5,
pub mmio: kvm_run__bindgen_ty_1__bindgen_ty_6,
pub hypercall: kvm_run__bindgen_ty_1__bindgen_ty_7,
pub tpr_access: kvm_run__bindgen_ty_1__bindgen_ty_8,
pub s390_sieic: kvm_run__bindgen_ty_1__bindgen_ty_9,
pub s390_reset_flags: __u64,
pub s390_ucontrol: kvm_run__bindgen_ty_1__bindgen_ty_10,
pub dcr: kvm_run__bindgen_ty_1__bindgen_ty_11,
pub internal: kvm_run__bindgen_ty_1__bindgen_ty_12,
pub osi: kvm_run__bindgen_ty_1__bindgen_ty_13,
pub papr_hcall: kvm_run__bindgen_ty_1__bindgen_ty_14,
pub s390_tsch: kvm_run__bindgen_ty_1__bindgen_ty_15,
pub epr: kvm_run__bindgen_ty_1__bindgen_ty_16,
pub system_event: kvm_run__bindgen_ty_1__bindgen_ty_17,
pub s390_stsi: kvm_run__bindgen_ty_1__bindgen_ty_18,
pub eoi: kvm_run__bindgen_ty_1__bindgen_ty_19,
pub padding: [::std::os::raw::c_char; 256usize],
_bindgen_union_align: [u64; 32usize],
}
#[test]
fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_1>())).hardware_exit_reason
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(hardware_exit_reason)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_run__bindgen_ty_1__bindgen_ty_2 {
pub hardware_entry_failure_reason: __u64,
}
#[test]
fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_2() {
assert_eq!(
::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_2>(),
8usize,
concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_2))
);
assert_eq!(
::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_2>(),
8usize,
concat!(
"Alignment of ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_2)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_2>()))
.hardware_entry_failure_reason as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_2),
"::",
stringify!(hardware_entry_failure_reason)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_run__bindgen_ty_1__bindgen_ty_3 {
pub exception: __u32,
pub error_code: __u32,
}
#[test]
fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_3() {
assert_eq!(
::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_3>(),
8usize,
concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_3))
);
assert_eq!(
::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_3>(),
4usize,
concat!(
"Alignment of ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_3)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_3>())).exception as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_3),
"::",
stringify!(exception)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_3>())).error_code as *const _
as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_3),
"::",
stringify!(error_code)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_run__bindgen_ty_1__bindgen_ty_4 {
pub direction: __u8,
pub size: __u8,
pub port: __u16,
pub count: __u32,
pub data_offset: __u64,
}
#[test]
fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_4() {
assert_eq!(
::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_4>(),
16usize,
concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4))
);
assert_eq!(
::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_4>(),
8usize,
concat!(
"Alignment of ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_4>())).direction as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4),
"::",
stringify!(direction)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_4>())).size as *const _
as usize
},
1usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_4>())).port as *const _
as usize
},
2usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4),
"::",
stringify!(port)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_4>())).count as *const _
as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4),
"::",
stringify!(count)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_4>())).data_offset as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_4),
"::",
stringify!(data_offset)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_run__bindgen_ty_1__bindgen_ty_5 {
pub arch: kvm_debug_exit_arch,
}
#[test]
fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_5() {
assert_eq!(
::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_5>(),
16usize,
concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_5))
);
assert_eq!(
::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_5>(),
8usize,
concat!(
"Alignment of ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_5)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_5>())).arch as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_5),
"::",
stringify!(arch)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_run__bindgen_ty_1__bindgen_ty_6 {
pub phys_addr: __u64,
pub data: [__u8; 8usize],
pub len: __u32,
pub is_write: __u8,
}
#[test]
fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_6() {
assert_eq!(
::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_6>(),
24usize,
concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_6))
);
assert_eq!(
::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_6>(),
8usize,
concat!(
"Alignment of ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_6)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_6>())).phys_addr as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_6),
"::",
stringify!(phys_addr)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_6>())).data as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_6),
"::",
stringify!(data)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_6>())).len as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_6),
"::",
stringify!(len)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_6>())).is_write as *const _
as usize
},
20usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_6),
"::",
stringify!(is_write)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_run__bindgen_ty_1__bindgen_ty_7 {
pub nr: __u64,
pub args: [__u64; 6usize],
pub ret: __u64,
pub longmode: __u32,
pub pad: __u32,
}
#[test]
fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_7() {
assert_eq!(
::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_7>(),
72usize,
concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7))
);
assert_eq!(
::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_7>(),
8usize,
concat!(
"Alignment of ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_7>())).nr as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7),
"::",
stringify!(nr)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_7>())).args as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7),
"::",
stringify!(args)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_7>())).ret as *const _ as usize
},
56usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7),
"::",
stringify!(ret)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_7>())).longmode as *const _
as usize
},
64usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7),
"::",
stringify!(longmode)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_7>())).pad as *const _ as usize
},
68usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_7),
"::",
stringify!(pad)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_run__bindgen_ty_1__bindgen_ty_8 {
pub rip: __u64,
pub is_write: __u32,
pub pad: __u32,
}
#[test]
fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_8() {
assert_eq!(
::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_8>(),
16usize,
concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_8))
);
assert_eq!(
::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_8>(),
8usize,
concat!(
"Alignment of ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_8)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_8>())).rip as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_8),
"::",
stringify!(rip)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_8>())).is_write as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_8),
"::",
stringify!(is_write)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_8>())).pad as *const _ as usize
},
12usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_8),
"::",
stringify!(pad)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_run__bindgen_ty_1__bindgen_ty_9 {
pub icptcode: __u8,
pub ipa: __u16,
pub ipb: __u32,
}
#[test]
fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_9() {
assert_eq!(
::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_9>(),
8usize,
concat!("Size of: ", stringify!(kvm_run__bindgen_ty_1__bindgen_ty_9))
);
assert_eq!(
::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_9>(),
4usize,
concat!(
"Alignment of ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_9)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_9>())).icptcode as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_9),
"::",
stringify!(icptcode)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_9>())).ipa as *const _ as usize
},
2usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_9),
"::",
stringify!(ipa)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_9>())).ipb as *const _ as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_9),
"::",
stringify!(ipb)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_run__bindgen_ty_1__bindgen_ty_10 {
pub trans_exc_code: __u64,
pub pgm_code: __u32,
}
#[test]
fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_10() {
assert_eq!(
::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_10>(),
16usize,
concat!(
"Size of: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_10)
)
);
assert_eq!(
::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_10>(),
8usize,
concat!(
"Alignment of ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_10)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_10>())).trans_exc_code
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_10),
"::",
stringify!(trans_exc_code)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_10>())).pgm_code as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_10),
"::",
stringify!(pgm_code)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_run__bindgen_ty_1__bindgen_ty_11 {
pub dcrn: __u32,
pub data: __u32,
pub is_write: __u8,
}
#[test]
fn bindgen_test_layout_kvm_run__bindgen_ty_1__bindgen_ty_11() {
assert_eq!(
::std::mem::size_of::<kvm_run__bindgen_ty_1__bindgen_ty_11>(),
12usize,
concat!(
"Size of: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_11)
)
);
assert_eq!(
::std::mem::align_of::<kvm_run__bindgen_ty_1__bindgen_ty_11>(),
4usize,
concat!(
"Alignment of ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_11)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_11>())).dcrn as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_11),
"::",
stringify!(dcrn)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_11>())).data as *const _
as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_11),
"::",
stringify!(data)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<kvm_run__bindgen_ty_1__bindgen_ty_11>())).is_write as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(kvm_run__bindgen_ty_1__bindgen_ty_11),
"::",
stringify!(is_write)
)
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kvm_run__bindgen_ty_1__bindgen_ty_12 {
pub suberror: __u32,
pub ndata: __u32,
pub data: [__u64; 16usize],
}