| /xen/tools/libs/light/ |
| A D | libxl_xshelp.c | 54 char *path; in libxl__xs_writev_perms() local 62 if (path && kvs[i + 1]) { in libxl__xs_writev_perms() 144 ptr = xs_read(ctx->xsh, t, path, NULL); in libxl__xs_read() 238 if (!xs_rm(CTX->xsh, t, path)) { in libxl__xs_rm_checked() 291 char *path, *last, *val; in libxl__xs_path_cleanup() local 297 path = libxl__strdup(gc, user_path); in libxl__xs_path_cleanup() 298 if (!xs_rm(CTX->xsh, t, path)) { in libxl__xs_path_cleanup() 305 for (last = strrchr(path, '/'); last != NULL; last = strrchr(path, '/')) { in libxl__xs_path_cleanup() 308 if (!strlen(path)) break; in libxl__xs_path_cleanup() 310 val = libxl__xs_read(gc, t, path); in libxl__xs_path_cleanup() [all …]
|
| A D | libxl_vsnd.c | 101 path), &tmp); in libxl__params_from_xenstore() 111 path), &tmp); in libxl__params_from_xenstore() 121 path), &tmp); in libxl__params_from_xenstore() 130 path), &tmp); in libxl__params_from_xenstore() 139 path), &tmp); in libxl__params_from_xenstore() 160 path), NULL); in libxl__stream_from_xenstore() 164 path), &tmp); in libxl__stream_from_xenstore() 194 rc = libxl__params_from_xenstore(gc, path, &pcm->params); in libxl__pcm_from_xenstore() 482 char *path = GCSPRINTF("%d/", i); in libxl__set_pcms_vsnd() local 546 path, i), &tmp); in libxl__device_stream_getinfo() [all …]
|
| /xen/tools/ocaml/libs/xs/ |
| A D | xsraw.ml | 168 if path <> "/" && path <> "" && path.[String.length path - 1] = '/' then 174 if path <> "" && path.[0] = '@' then () 181 validate_path path; 186 validate_path path; 190 List.map (fun path -> validate_path path; read tid path con) 195 validate_path path; 233 validate_path path; 243 validate_path path; 246 let rm tid path con = 247 validate_path path; [all …]
|
| A D | queueop.ml | 21 let data = data_concat [ path; ] in 25 let directory tid path con = queue_path Xb.Op.Directory tid path con 26 let read tid path con = queue_path Xb.Op.Read tid path con 28 let getperms tid path con = queue_path Xb.Op.Getperms tid path con 33 let watch path data con = 34 let data = data_concat [ path; data; ] in 37 let unwatch path data con = 66 let write tid path value con = 70 let mkdir tid path con = queue_path Xb.Op.Mkdir tid path con 71 let rm tid path con = queue_path Xb.Op.Rm tid path con [all …]
|
| A D | xst.ml | 32 directory = (fun path -> Xsraw.directory tid path xsh); 33 read = (fun path -> Xsraw.read tid path xsh); 35 write = (fun path value -> Xsraw.write tid path value xsh); 37 mkdir = (fun path -> Xsraw.mkdir tid path xsh); 38 rm = (fun path -> Xsraw.rm tid path xsh); 39 getperms = (fun path -> Xsraw.getperms tid path xsh); 40 setperms = (fun path perms -> Xsraw.setperms tid path perms xsh);
|
| A D | xs.ml | 46 directory = (fun path -> Xsraw.directory 0 path con); 47 read = (fun path -> Xsraw.read 0 path con); 49 write = (fun path value -> Xsraw.write 0 path value con); 51 mkdir = (fun path -> Xsraw.mkdir 0 path con); 52 rm = (fun path -> Xsraw.rm 0 path con); 53 getperms = (fun path -> Xsraw.getperms 0 path con); 54 setperms = (fun path perms -> Xsraw.setperms 0 path perms con); 60 watch = (fun path data -> Xsraw.watch path data con); 61 unwatch = (fun path data -> Xsraw.unwatch path data con); 165 let path = try [all …]
|
| /xen/tools/ocaml/xenstored/ |
| A D | transaction.ml | 46 | Some path -> 147 let add_wop t ty path = t.paths <- (ty, path) :: t.paths 161 let set_read_lowpath t path = t.read_lowpath <- get_lowest path t.read_lowpath 162 let set_write_lowpath t path = t.write_lowpath <- get_lowest path t.write_lowpath 164 let path_exists t path = Store.path_exists t.store path 185 let rm t perm path = 190 let ls t perm path = 192 set_read_lowpath t path; 195 let read t perm path = 197 set_read_lowpath t path; [all …]
|
| A D | store.ml | 131 let is_valid path = 140 | "" :: path when is_valid path -> path 174 match path with 190 match path with 200 if path = [] then 214 if path = [] then 228 match path with 267 if path = [] then 284 if path = [] then ( 364 if path = [] then [all …]
|
| A D | connection.ml | 97 path: string; RecordField 124 | 0 -> String.compare w1.path w2.path 168 path = path; 170 is_relative = path.[0] <> '/' && path.[0] <> '@'; 259 let get_watch_path con path = 260 if path.[0] = '@' || path.[0] = '/' then 261 path 264 rpath ^ path 272 let path = path ^ "/" in 329 lookup_watch_perm path oldroot @ lookup_watch_perm path (Some root) [all …]
|
| A D | utils.ml | 37 let get_hierarchy path = 38 let l = List.length path in 39 let revpath = List.rev path in 65 let trim_path path = 67 let rindex = String.rindex path '/' in 68 String.sub path 0 rindex 93 let path_validate path connection_path = 94 let len = String.length path in 99 match String.get path 0 with 100 | '/' | '@' -> path [all …]
|
| /xen/tools/9pfsd/ |
| A D | xen-9pfsd.c | 53 struct path { struct 54 char path[100]; argument 73 char *path, *p; in check_host_path() local 92 if ( !path ) in check_host_path() 121 free(path); in check_host_path() 135 snprintf(p->path, sizeof(p->path), "backend/xen_9pfs/%u/%u/%s", in construct_backend_path() 141 struct path p; in read_backend_node() 176 struct path p; in read_frontend_node_uint() 187 struct path p; in write_backend_node() 233 struct path p; in write_backend_state() [all …]
|
| A D | io.c | 63 uint64_t path; member 567 strcpy(fidp->path, path); in alloc_fid_mem() 639 return (path[0] == '/') ? path + 1 : path; in relpath_from_path() 824 if ( !path ) in p9_walk() 829 strcpy(path, fidp->path); in p9_walk() 902 free(path); in p9_walk() 1038 char *path; in p9_create() local 1078 path = malloc(strlen(fidp->path) + strlen(ring->str + name_off) + 2); in p9_create() 1079 if ( !path ) in p9_create() 1085 sprintf(path, "%s/%s", fidp->path, ring->str + name_off); in p9_create() [all …]
|
| /xen/tools/misc/ |
| A D | xenhypfs.c | 37 char *path; in xenhypfs_cat() local 42 path = argv[0]; in xenhypfs_cat() 49 path = argv[1]; in xenhypfs_cat() 56 result = xenhypfs_read(hdl, path); in xenhypfs_cat() 71 static int xenhypfs_wr(char *path, char *val) in xenhypfs_wr() argument 75 ret = xenhypfs_write(hdl, path, val); in xenhypfs_wr() 115 static int xenhypfs_ls(char *path) in xenhypfs_ls() argument 121 ent = xenhypfs_readdir(hdl, path, &n); in xenhypfs_ls() 137 static int xenhypfs_tree_sub(const char *path, unsigned int depth) in xenhypfs_tree_sub() argument 144 ent = xenhypfs_readdir(hdl, path, &n); in xenhypfs_tree_sub() [all …]
|
| /xen/tools/xenstored/ |
| A D | watch.c | 164 const char **path, bool *relative) in check_watch_path() argument 166 *relative = !strstarts(*path, "/") && !strstarts(*path, "@"); in check_watch_path() 167 *path = canonicalize(conn, ctx, *path, true); in check_watch_path() 169 return *path ? 0 : errno; in check_watch_path() 181 watch->node = talloc_strdup(watch, path); in add_watch() 291 const char *path; in dump_state_watches() local 300 sw.path_length = strlen(path) + 1; in dump_state_watches() 326 const char *path, *token; in read_state_watch() local 333 path = (char *)sw->data; in read_state_watch() 334 token = path + sw->path_length; in read_state_watch() [all …]
|
| /xen/tools/include/ |
| A D | xenstore.h | 100 const char *path, unsigned int *num); 108 const char *path, unsigned int *len); 114 const char *path, const void *data, unsigned int len); 123 const char *path); 129 const char *path); 141 const char *path, unsigned int *num); 170 const char *path, struct xs_permissions *perms, 178 bool xs_watch(struct xs_handle *h, const char *path, const char *token); 209 bool xs_unwatch(struct xs_handle *h, const char *path, const char *token);
|
| /xen/tools/libs/stat/ |
| A D | xenstat_qmp.c | 143 char **dev_ids, *tmp, *ptr, *image, path[80]; in lookup_xenstore_devid() local 148 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i", domid); in lookup_xenstore_devid() 165 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i/%i/params", domid, devid); in lookup_xenstore_devid() 177 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i/%i/sector-size", domid, devid); in lookup_xenstore_devid() 333 static int qmp_connect(char *path) in qmp_connect() argument 345 if (strlen(path) >= sizeof(sun.sun_path)) { in qmp_connect() 350 strcpy(sun.sun_path, path); in qmp_connect() 390 char path[80]; in read_attributes_qdisk_dom() local 394 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i", domain); in read_attributes_qdisk_dom() 401 snprintf(path, sizeof(path), XEN_RUN_DIR "/qmp-libxenstat-%i", domain); in read_attributes_qdisk_dom() [all …]
|
| A D | xenstat_solaris.c | 214 char path[PATH_MAX]; in collect_dom_networks() local 220 snprintf(path, sizeof(path), "/local/domain/%d/device/vif", dom->id); in collect_dom_networks() 236 snprintf(path, sizeof(path), in collect_dom_networks() 239 tmp = xs_read(node->handle->xshandle, XBT_NULL, path, NULL); in collect_dom_networks() 244 snprintf(path, sizeof(path), "%s/nic", tmp); in collect_dom_networks() 247 tmp = xs_read(node->handle->xshandle, XBT_NULL, path, NULL); in collect_dom_networks() 321 char path[PATH_MAX]; in collect_dom_vbds() local 327 snprintf(path, sizeof(path), "/local/domain/%d/device/vbd", dom->id); in collect_dom_vbds() 344 snprintf(path, sizeof(path), in collect_dom_vbds() 347 tmp = xs_read(node->handle->xshandle, XBT_NULL, path, NULL); in collect_dom_vbds() [all …]
|
| /xen/xen/scripts/xen_analysis/ |
| A D | cppcheck_report_utils.py | 54 path = location_item.attrib["file"] 55 new_obj_path = obj_path + "/" + path 56 new_src_path = src_path + "/" + path 57 if (path[0] != "/") and (not os.path.isfile(new_src_path)) \ 58 and os.path.isfile(new_obj_path): 108 for path in strip_paths: 110 text_report_content[i][0].replace(path + "/", "") 123 if os.path.isfile(settings.xen_dir + "/" + cppcheck_file): 148 for path in strip_paths: 149 html_lines[i] = html_lines[i].replace(path + "/", "")
|
| A D | exclusion_file_list.py | 49 path = entry['rel_path'] 66 abs_path = settings.xen_dir + "/" + path 75 if not os.path.exists(filepath_object): 78 .format(path, filepath_object) 81 ret.append((path, check_path))
|
| /xen/tools/xs-clients/ |
| A D | xenstore_client.c | 255 if (xs_rm(xsh, xth, path)) { in do_rm() 289 err(1, "xs_directory (%s)", path); in do_ls() 304 path[strlen(path)-1] == '/' ? "" : "/", in do_ls() 385 if (!path[0]) in do_chmod() 397 PATH_SEP, path); in do_chmod() 518 strcpy(p, path); in perform() 519 path = p; in perform() 522 if (do_rm(path, xsh, xth)) { in perform() 523 free(path); in perform() 548 free(path); in perform() [all …]
|
| /xen/tools/pygrub/src/ |
| A D | LiloConf.py | 12 def __init__(self, lines, path): argument 13 self.reset(lines, path) 22 def reset(self, lines, path): argument 27 self.path = path 51 self._kernel = (None, self.path + "/" + val) 57 self._initrd = (None, self.path + "/" + val) 111 path = os.path.dirname(self.filename) 124 self.add_image(LiloImage(img, path)) 142 self.add_image(LiloImage(img, path))
|
| /xen/xen/common/libfdt/ |
| A D | fdt_overlay.c | 48 const char *path = NULL; in fdt_overlay_target_offset() local 60 if (path) in fdt_overlay_target_offset() 83 *pathp = path ? path : NULL; in fdt_overlay_target_offset() 447 path = fixup_str; in overlay_fixup_phandle() 452 path_len = sep - path; in overlay_fixup_phandle() 687 const char *path; in overlay_symbol_update() local 714 if (!path) in overlay_symbol_update() 718 if (path_len < 1 || memchr(path, '\0', path_len) != &path[path_len - 1]) in overlay_symbol_update() 722 e = path + path_len; in overlay_symbol_update() 724 if (*path != '/') in overlay_symbol_update() [all …]
|
| /xen/tools/python/xen/lowlevel/xs/ |
| A D | xs.c | 105 char *path; in xspy_read() local 143 char *path; in xspy_write() local 177 char *path; in xspy_ls() local 220 char *path; in xspy_mkdir() local 228 result = xs_mkdir(xh, th, path); in xspy_mkdir() 248 char *path; in xspy_rm() local 256 result = xs_rm(xh, th, path); in xspy_rm() 275 char *path = NULL; in xspy_get_permissions() local 328 char *path; in xspy_set_permissions() local 422 char *path; in xspy_watch() local [all …]
|
| /xen/tools/hotplug/FreeBSD/ |
| A D | block | 13 path=$1 15 params=$(xenstore-read "$path/params") 19 xenstore-write $path/physical-device-path $params
|
| /xen/xen/tools/kconfig/tests/ |
| A D | conftest.py | 18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf')) 36 self._test_dir = os.path.dirname(str(request.fspath)) 62 shutil.copyfile(os.path.join(self._test_dir, dot_config), 63 os.path.join(temp_dir, '.config')) 90 with open(os.path.join(temp_dir, out_file)) as f: 150 defconfig_path = os.path.join(self._test_dir, defconfig) 155 all_config_path = os.path.join(self._test_dir, all_config) 226 with open(os.path.join(self._test_dir, expected)) as f:
|