On Sun, Apr 19, 2015 at 4:50 AM, Chunyan Liu <cy...@suse.com> wrote: > +int libxl_device_usbctrl_getinfo(libxl_ctx *ctx, uint32_t domid, > + libxl_device_usbctrl *usbctrl, > + libxl_usbctrlinfo *usbctrlinfo) > +{ > + GC_INIT(ctx); > + char *dompath, *usbctrlpath; > + char *val; > + int rc = 0; > + > + usbctrlinfo->devid = usbctrl->devid; > + usbctrlinfo->ports = usbctrl->ports; > + usbctrlinfo->version = usbctrl->version;
...and following on from the previous mail, it looks like the other device_*_getinfo() functions *only* read devid -- which means you just have to make the struct and fill in devid, and getinfo() will tell *you* the ports, the version, and so on. -George _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel