Lines Matching refs:libxl_path
105 const char *libxl_path = GCSPRINTF("%s/device/vbd/%d", in libxl_evenable_disk_eject() local
108 evg->be_ptr_path = libxl__sprintf(NOGC, "%s/backend", libxl_path); in libxl_evenable_disk_eject()
112 GCSPRINTF("%s/dev", libxl_path), &configured_vdev); in libxl_evenable_disk_eject()
474 static int libxl__disk_from_xenstore(libxl__gc *gc, const char *libxl_path, in libxl__disk_from_xenstore() argument
485 GCSPRINTF("%s/backend", libxl_path), in libxl__disk_from_xenstore()
490 LOG(ERROR, "disk %s does not exist (no backend path", libxl_path); in libxl__disk_from_xenstore()
508 GCSPRINTF("%s/params", libxl_path), &len); in libxl__disk_from_xenstore()
517 GCSPRINTF("%s/colo-host", libxl_path), &len); in libxl__disk_from_xenstore()
523 GCSPRINTF("%s/colo-port", libxl_path), &len); in libxl__disk_from_xenstore()
525 LOG(ERROR, "Missing xenstore node %s/colo-port", libxl_path); in libxl__disk_from_xenstore()
532 GCSPRINTF("%s/"#param"", libxl_path), &len); \ in libxl__disk_from_xenstore()
534 LOG(ERROR, "Missing xenstore node %s/"#param"", libxl_path); \ in libxl__disk_from_xenstore()
548 GCSPRINTF("%s/type", libxl_path)); in libxl__disk_from_xenstore()
550 LOG(ERROR, "Missing xenstore node %s/type", libxl_path); in libxl__disk_from_xenstore()
556 GCSPRINTF("%s/dev", libxl_path), &len); in libxl__disk_from_xenstore()
558 LOG(ERROR, "Missing xenstore node %s/dev", libxl_path); in libxl__disk_from_xenstore()
563 (gc, "%s/removable", libxl_path)); in libxl__disk_from_xenstore()
565 LOG(ERROR, "Missing xenstore node %s/removable", libxl_path); in libxl__disk_from_xenstore()
570 tmp = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/mode", libxl_path)); in libxl__disk_from_xenstore()
572 LOG(ERROR, "Missing xenstore node %s/mode", libxl_path); in libxl__disk_from_xenstore()
581 GCSPRINTF("%s/device-type", libxl_path)); in libxl__disk_from_xenstore()
583 LOG(ERROR, "Missing xenstore node %s/device-type", libxl_path); in libxl__disk_from_xenstore()
602 char *dom_xl_path, *libxl_path; in libxl_vdev_to_device_disk() local
615 libxl_path = GCSPRINTF("%s/device/vbd/%d", dom_xl_path, devid); in libxl_vdev_to_device_disk()
617 rc = libxl__disk_from_xenstore(gc, libxl_path, devid, disk); in libxl_vdev_to_device_disk()
627 char *dompath, *fe_path, *libxl_path; in libxl_device_disk_getinfo() local
638 libxl_path = GCSPRINTF("%s/device/vbd/%d", in libxl_device_disk_getinfo()
641 GCSPRINTF("%s/backend", libxl_path), NULL); in libxl_device_disk_getinfo()
657 GCSPRINTF("%s/frontend", libxl_path), NULL); in libxl_device_disk_getinfo()
677 const char *be_path, *libxl_path; in libxl_cdrom_insert() local
745 libxl_path = libxl__device_libxl_path(gc, &device); in libxl_cdrom_insert()
785 tmp = libxl__xs_read(gc, t, GCSPRINTF("%s/frontend", libxl_path)); in libxl_cdrom_insert()
789 GCSPRINTF("%s/frontend", libxl_path)); in libxl_cdrom_insert()
799 rc = libxl__xs_writev(gc, t, libxl_path, kvs); in libxl_cdrom_insert()
824 tmp = libxl__xs_read(gc, t, GCSPRINTF("%s/frontend", libxl_path)); in libxl_cdrom_insert()
828 GCSPRINTF("%s/frontend", libxl_path)); in libxl_cdrom_insert()
841 rc = libxl__xs_writev(gc, t, libxl_path, kvs); in libxl_cdrom_insert()