Lines Matching refs:dirpath

674     char *dirpath;  in build_guest_fsinfo_for_virtual_device()  local
677 dirpath = g_strdup_printf("%s/slaves", syspath); in build_guest_fsinfo_for_virtual_device()
678 dir = opendir(dirpath); in build_guest_fsinfo_for_virtual_device()
681 error_setg_errno(errp, errno, "opendir(\"%s\")", dirpath); in build_guest_fsinfo_for_virtual_device()
683 g_free(dirpath); in build_guest_fsinfo_for_virtual_device()
692 error_setg_errno(errp, errno, "readdir(\"%s\")", dirpath); in build_guest_fsinfo_for_virtual_device()
712 g_free(dirpath); in build_guest_fsinfo_for_virtual_device()
1494 char *dirpath, Error **errp) in transfer_vcpu() argument
1501 dirfd = open(dirpath, O_RDONLY | O_DIRECTORY); in transfer_vcpu()
1503 error_setg_errno(errp, errno, "open(\"%s\")", dirpath); in transfer_vcpu()
1510 error_setg_errno(errp, errno, "open(\"%s/%s\")", dirpath, fn); in transfer_vcpu()
1523 error_setg_errno(errp, errno, "pread(\"%s/%s\")", dirpath, fn); in transfer_vcpu()
1525 error_setg(errp, "pread(\"%s/%s\"): unexpected EOF", dirpath, in transfer_vcpu()
1533 error_setg_errno(errp, errno, "pwrite(\"%s/%s\")", dirpath, in transfer_vcpu()
1679 char *dirpath; in transfer_memory_block() local
1707 dirpath = g_strdup_printf("/sys/devices/system/memory/memory%" PRId64 "/", in transfer_memory_block()
1709 dirfd = open(dirpath, O_RDONLY | O_DIRECTORY); in transfer_memory_block()
1712 error_setg_errno(errp, errno, "open(\"%s\")", dirpath); in transfer_memory_block()
1721 g_free(dirpath); in transfer_memory_block()
1724 g_free(dirpath); in transfer_memory_block()
1895 char *dirpath; in qmp_guest_get_memory_block_info() local
1900 dirpath = g_strdup_printf("/sys/devices/system/memory/"); in qmp_guest_get_memory_block_info()
1901 dirfd = open(dirpath, O_RDONLY | O_DIRECTORY); in qmp_guest_get_memory_block_info()
1903 error_setg_errno(errp, errno, "open(\"%s\")", dirpath); in qmp_guest_get_memory_block_info()
1904 g_free(dirpath); in qmp_guest_get_memory_block_info()
1907 g_free(dirpath); in qmp_guest_get_memory_block_info()