Lines Matching refs:nicinfo
441 libxl_device_nic *nic, libxl_nicinfo *nicinfo) in libxl_device_nic_getinfo() argument
449 nicinfo->devid = nic->devid; in libxl_device_nic_getinfo()
451 nicpath = GCSPRINTF("%s/device/vif/%d", dompath, nicinfo->devid); in libxl_device_nic_getinfo()
453 libxl__xs_libxl_path(gc, domid), nicinfo->devid); in libxl_device_nic_getinfo()
454 nicinfo->backend = xs_read(ctx->xsh, XBT_NULL, in libxl_device_nic_getinfo()
456 if (!nicinfo->backend) { in libxl_device_nic_getinfo()
460 rc = libxl__backendpath_parse_domid(gc, nicinfo->backend, in libxl_device_nic_getinfo()
461 &nicinfo->backend_id); in libxl_device_nic_getinfo()
465 nicinfo->state = val ? strtoul(val, NULL, 10) : -1; in libxl_device_nic_getinfo()
467 nicinfo->evtch = val ? strtoul(val, NULL, 10) : -1; in libxl_device_nic_getinfo()
469 nicinfo->rref_tx = val ? strtoul(val, NULL, 10) : -1; in libxl_device_nic_getinfo()
471 nicinfo->rref_rx = val ? strtoul(val, NULL, 10) : -1; in libxl_device_nic_getinfo()
472 nicinfo->frontend = libxl__strdup(NOGC, nicpath); in libxl_device_nic_getinfo()
473 nicinfo->frontend_id = domid; in libxl_device_nic_getinfo()