Home
last modified time | relevance | path

Searched refs:path_len (Results 1 – 6 of 6) sorted by relevance

/qemu/util/
H A Dselfmap.c45 size_t path_len; in read_self_maps() local
51 path_len = strlen(p) + 1; in read_self_maps()
54 path_len = 0; in read_self_maps()
57 e = g_malloc0(sizeof(*e) + path_len); in read_self_maps()
70 if (path_len) { in read_self_maps()
71 e->path = memcpy(e + 1, p, path_len); in read_self_maps()
/qemu/system/
H A Ddevice_tree.c248 unsigned int path_len = 16, n = 0; in qemu_fdt_node_unit_path() local
265 path = g_malloc(path_len); in qemu_fdt_node_unit_path()
266 while ((ret = fdt_get_path(fdt, offset, path, path_len)) in qemu_fdt_node_unit_path()
268 path_len += 16; in qemu_fdt_node_unit_path()
269 path = g_realloc(path, path_len); in qemu_fdt_node_unit_path()
305 unsigned int path_len = 16, n = 0; in qemu_fdt_node_path() local
320 path = g_malloc(path_len); in qemu_fdt_node_path()
321 while ((ret = fdt_get_path(fdt, offset, path, path_len)) in qemu_fdt_node_path()
323 path_len += 16; in qemu_fdt_node_path()
324 path = g_realloc(path, path_len); in qemu_fdt_node_path()
/qemu/hw/core/
H A Dsysbus-fdt.c143 int ret, node_offset, prop_len, path_len = 16; in fdt_build_clock_node() local
151 node_path = g_malloc(path_len); in fdt_build_clock_node()
152 while ((ret = fdt_get_path(host_fdt, node_offset, node_path, path_len)) in fdt_build_clock_node()
154 path_len += 16; in fdt_build_clock_node()
155 node_path = g_realloc(node_path, path_len); in fdt_build_clock_node()
/qemu/hw/i386/kvm/
H A Dxenstore_impl.c372 int path_len = strlen(op->path); in node_rm_recurse() local
381 assert(key_len + path_len + 2 <= sizeof(op->path)); in node_rm_recurse()
382 op->path[path_len] = '/'; in node_rm_recurse()
383 memcpy(op->path + path_len + 1, key, key_len + 1); in node_rm_recurse()
395 op->path[path_len] = '\0'; in node_rm_recurse()
967 int path_len = strlen(op->path); in tx_commit_walk() local
989 assert(key_len + path_len + 2 <= sizeof(op->path)); in tx_commit_walk()
990 op->path[path_len] = '/'; in tx_commit_walk()
991 memcpy(op->path + path_len + 1, key, key_len + 1); in tx_commit_walk()
1015 op->path[path_len] = '\0'; in tx_commit_walk()
/qemu/block/
H A Dvvfat.c2023 int path_len = strlen(path); in check_directory_consistency() local
2026 assert(path_len < PATH_MAX); /* len was tested before! */ in check_directory_consistency()
2028 path2[path_len] = '/'; in check_directory_consistency()
2029 path2[path_len + 1] = '\0'; in check_directory_consistency()
2101 if (path_len + 1 + lfn.len >= PATH_MAX) { in check_directory_consistency()
2105 pstrcpy(path2 + path_len + 1, sizeof(path2) - path_len - 1, in check_directory_consistency()
/qemu/hw/pci/
H A Dpci.c2548 int path_len; in pcibus_get_dev_path() local
2561 path_len = root_bus_len + slot_len * slot_depth; in pcibus_get_dev_path()
2564 path = g_malloc(path_len + 1 /* For '\0' */); in pcibus_get_dev_path()
2565 path[path_len] = '\0'; in pcibus_get_dev_path()
2571 p = path + path_len; in pcibus_get_dev_path()