Home
last modified time | relevance | path

Searched refs:devpath (Results 1 – 5 of 5) sorted by relevance

/qemu/util/
H A Dchardev_open.c62 g_autofree char *devpath = NULL; in open_cdev_robust() local
68 devpath = g_strdup_printf("/dev/char/%u:%u", major(cdev), minor(cdev)); in open_cdev_robust()
69 return open_cdev_internal(devpath, cdev); in open_cdev_robust()
72 int open_cdev(const char *devpath, dev_t cdev) in open_cdev() argument
76 fd = open_cdev_internal(devpath, cdev); in open_cdev()
/qemu/system/
H A Dbootdevice.c211 char *devpath = NULL, *s = NULL, *d, *bootpath; in get_boot_device_path() local
214 devpath = qdev_get_fw_dev_path(dev); in get_boot_device_path()
215 assert(devpath); in get_boot_device_path()
233 devpath ? devpath : "", in get_boot_device_path()
235 g_free(devpath); in get_boot_device_path()
/qemu/hw/core/
H A Dloader.c1049 char devpath[100]; in rom_add_file() local
1094 snprintf(devpath, sizeof(devpath), "/rom@%s", fw_file_name); in rom_add_file()
1097 data = rom_set_mr(rom, OBJECT(fw_cfg), devpath, true); in rom_add_file()
1106 snprintf(devpath, sizeof(devpath), "/rom@%s", file); in rom_add_file()
1108 snprintf(devpath, sizeof(devpath), "/rom@" HWADDR_FMT_plx, addr); in rom_add_file()
1112 add_boot_device_path(bootindex, NULL, devpath); in rom_add_file()
1140 char devpath[100]; in rom_add_blob() local
1144 snprintf(devpath, sizeof(devpath), "/rom@%s", fw_file_name); in rom_add_blob()
1146 snprintf(devpath, sizeof(devpath), "/ram@%s", fw_file_name); in rom_add_blob()
1150 data = rom_set_mr(rom, OBJECT(fw_cfg), devpath, read_only); in rom_add_blob()
/qemu/include/qemu/
H A Dchardev_open.h15 int open_cdev(const char *devpath, dev_t cdev);
/qemu/qga/
H A Dcommands-linux.c37 static int dev_major_minor(const char *devpath, in dev_major_minor() argument
45 if (stat(devpath, &st) < 0) { in dev_major_minor()
46 slog("failed to stat device file '%s': %s", devpath, strerror(errno)); in dev_major_minor()
662 static void build_guest_fsinfo_for_device(char const *devpath,
716 static bool is_disk_virtual(const char *devpath, Error **errp) in is_disk_virtual() argument
718 g_autofree char *syspath = realpath(devpath, NULL); in is_disk_virtual()
721 error_setg_errno(errp, errno, "realpath(\"%s\")", devpath); in is_disk_virtual()
728 static void build_guest_fsinfo_for_device(char const *devpath, in build_guest_fsinfo_for_device() argument
736 syspath = realpath(devpath, NULL); in build_guest_fsinfo_for_device()
739 error_setg_errno(errp, errno, "realpath(\"%s\")", devpath); in build_guest_fsinfo_for_device()
[all …]