[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH V3 1/2] Xen stub driver for memory hotplug



>> +#include <linux/kernel.h>
>> +#include <linux/init.h>
>> +#include <linux/export.h>
>> +#include <linux/types.h>
>> +#include <linux/acpi.h>
>> +#include <acpi/acpi_drivers.h>
>> +#include <xen/acpi.h>
>> +
>> +/*--------------------------------------------
>> +    stub driver for Xen memory hotplug
>> +--------------------------------------------*/
>> +
>> +#ifdef CONFIG_ACPI
>> +
>> +static const struct acpi_device_id memory_device_ids[] = {
>> +    {ACPI_MEMORY_DEVICE_HID, 0},
>> +    {"", 0},
>> +};
>> +
>> +struct acpi_driver xen_stub_memory_device_driver = {
>> +    /* same name as native memory driver to block native loaded */
>> +    .name = "acpi_memhotplug", +    .class = ACPI_MEMORY_DEVICE_CLASS,
>> +    .ids = memory_device_ids,
>> +};
>> +EXPORT_SYMBOL_GPL(xen_stub_memory_device_driver);
> 
> Instead of having this, could you have a function that would
> unregister this if required.
> 
> xen_stub_memory_device_uninit(void)
> 
> which would unregister the above mentioned structure?
> 

Yup, updated by EXPORT_SYMBOL_GPL 2 funcs:
xen_stub_memory_device_init()
xen_stub_memory_device_exit()

Thanks,
Jinsong
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.