[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xl: use libxl_device_pci_destroy
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1282228423 -3600 # Node ID 88f4d10e05081c7a0e93ea162b5103bc3a52c910 # Parent 477abe597f6d2f6d83343ee99f496d5e7eca7b5a xl: use libxl_device_pci_destroy [PATCH 16 of 16 of libxl: autogenerate type definitions and destructor functions] Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- tools/libxl/xl_cmdimpl.c | 3 +++ 1 files changed, 3 insertions(+) diff -r 477abe597f6d -r 88f4d10e0508 tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Thu Aug 19 15:32:56 2010 +0100 +++ b/tools/libxl/xl_cmdimpl.c Thu Aug 19 15:33:43 2010 +0100 @@ -2010,6 +2010,7 @@ static void pcilist(char *dom) printf("VFn domain bus slot func\n"); for (i = 0; i < num; i++) { printf("0x%02x 0x%04x 0x%02x 0x%02x 0x%01x\n", pcidevs[i].vdevfn, pcidevs[i].domain, pcidevs[i].bus, pcidevs[i].dev, pcidevs[i].func); + libxl_device_pci_destroy(&pcidevs[i]); } free(pcidevs); } @@ -2052,6 +2053,7 @@ static void pcidetach(char *dom, char *b exit(2); } libxl_device_pci_remove(&ctx, domid, &pcidev); + libxl_device_pci_destroy(&pcidev); } int main_pcidetach(int argc, char **argv) @@ -2092,6 +2094,7 @@ static void pciattach(char *dom, char *b exit(2); } libxl_device_pci_add(&ctx, domid, &pcidev); + libxl_device_pci_destroy(&pcidev); } int main_pciattach(int argc, char **argv) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |