OBJECT_DECLARE_SIMPLE_TYPE(CryptoDevBackendBuiltin, CRYPTODEV_BACKEND_BUILTIN) typedef struct CryptoDevBackendBuiltinSession { 4 changes: 1 addition & 3 deletions 4 backends/cryptodev-vhost-user.c Original file
后续就是调用ppce500_init_mpic_qemu,而sysbus_realize_and_unref 之前也说过,会调用到具体的device.c的realize函数中,由于当前初始化的设备是TYPE_OPENPIC,对应的"openpic"字符串,也就是会跳转到openpic.c的openpic_realize函数 #define TYPE_OPENPIC "openpic" OBJECT_DECLARE_SIMPLE_TYPE(OpenPICState, OPEN...
obj, TYPENAME); } 243 /** 244 * OBJECT_DECLARE_SIMPLE_TYPE: 245 * @InstanceType: instance struct name 246 * @MODULE_OBJ_NAME: the object name in uppercase with underscore
type_initialize(Type)函数用来初始化一个类型,如果父类没有初始化会递归的初始化其父类型,初始化完成后type_impl->class指向类结构体,在初始化的过程中父类结构体的字段会被copy到子类中的父类类结构体中。 object_new(Type)函数用来初始化一个对象,如果对象的类型没有初始化,它会先初始化类结构体,然后会递归...
@@ -99,6 +99,7 @@ OBJECT_DECLARE_SIMPLE_TYPE(AcpiGedState, ACPI_GED) #define ACPI_GED_MEM_HOTPLUG_EVT 0x1 #define ACPI_GED_PWR_DOWN_EVT 0x2 #define ACPI_GED_NVDIMM_HOTPLUG_EVT 0x4 +#define ACPI_GED_MMIO_DEV_HOTPLUG_EVT 0x8 ...
type_register_static(&aspeed_2500_i2c_info); Expand Down 8 changes: 6 additions & 2 deletions8include/hw/i2c/aspeed_i2c.h Original file line numberDiff line numberDiff line change Expand Up@@ -36,7 +36,11 @@ OBJECT_DECLARE_TYPE(AspeedI2CState, AspeedI2CClass, ASPEED_I2C) ...
12qemu关于这块代码非常绕最后core在object_get_class34Chardev *s = be->chr;5src = CHARDEV_GET_CLASS(s)->chr_add_watch(s, cond);678#defineCHARDEV_GET_CLASS(obj) \9OBJECT_GET_CLASS(ChardevClass, (obj), TYPE_CHARDEV)1011#defineOBJECT_GET_CLASS(class, obj, name) \12OBJECT_CLASS_CHECK(cl...
static void iothread_get_param(Object *obj, Visitor *v, const char *name, IOThreadParamInfo *info, Error **errp) { IOThread *iothread = IOTHREAD(obj); int64_t *field = (void *)iothread + info->offset; visit_type_int64(v, name, field, errp); ...
uadk = declare_dependency(dependencies: [libwd, libwd_comp]) endif endif qatzip = not_found if not get_option('qatzip').auto() or have_system qatzip = dependency('qatzip', version: '>=1.1.2', required: get_option('qatzip'), method: 'pkg-config') endif virgl = ...
xen_pc = declare_dependency(version: xencontrol.version(), dependencies: [ xencontrol, # disabler: true makes xen_pc.found() return false if any is not found dependency('xenstore', required: false, method: 'pkg-config', disabler: true), dependency('xenforeignmemory', required: ...