/xen-4.10.0-shim-comet/tools/libxl/ |
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() 139 ptr = xs_read(ctx->xsh, t, path, NULL); in libxl__xs_read() 235 if (!xs_rm(CTX->xsh, t, path)) { in libxl__xs_rm_checked() 288 char *path, *last, *val; in libxl__xs_path_cleanup() local 294 path = libxl__strdup(gc, user_path); in libxl__xs_path_cleanup() 295 if (!xs_rm(CTX->xsh, t, path)) { in libxl__xs_path_cleanup() 302 for (last = strrchr(path, '/'); last != NULL; last = strrchr(path, '/')) { in libxl__xs_path_cleanup() 305 if (!strlen(path)) break; in libxl__xs_path_cleanup() 307 val = libxl__xs_read(gc, t, path); in libxl__xs_path_cleanup() [all …]
|
/xen-4.10.0-shim-comet/tools/blktap2/vhd/lib/ |
A D | relative-path.c | 49 if (!path) in count_nodes() 71 if (!path || !*path) { in next_node() 77 start = *path; in next_node() 98 *path = tmp; in next_node() 159 char *path, *tmp; in up_nodes() local 171 if (!path) in up_nodes() 174 tmp = path; in up_nodes() 178 free(path); in up_nodes() 184 return path; in up_nodes() 193 char *path; in node_offset() local [all …]
|
/xen-4.10.0-shim-comet/tools/ocaml/libs/xs/ |
A D | xsraw.ml | 174 if path <> "/" && path <> "" && path.[String.length path - 1] = '/' then 180 if path <> "" && path.[0] = '@' then () 187 validate_path path; 192 validate_path path; 196 List.map (fun path -> validate_path path; read tid path con) 201 validate_path path; 239 validate_path path; 249 validate_path path; 252 let rm tid path con = 260 validate_path path; [all …]
|
A D | queueop.ml | 20 let data = data_concat [ path; ] in 24 let directory tid path con = queue_path Xb.Op.Directory tid path con 25 let read tid path con = queue_path Xb.Op.Read tid path con 27 let getperms tid path con = queue_path Xb.Op.Getperms tid path con 32 let watch path data con = 33 let data = data_concat [ path; data; ] in 36 let unwatch path data con = 65 let write tid path value con = 69 let mkdir tid path con = queue_path Xb.Op.Mkdir tid path con 70 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-4.10.0-shim-comet/tools/ocaml/xenstored/ |
A D | store.ml | 113 let is_valid path = 122 | "" :: path when is_valid path -> path 156 match path with 172 match path with 182 if path = [] then 196 if path = [] then 210 match path with 244 if path = [] then 275 if path = [] then 281 if path = [] then [all …]
|
A D | transaction.ml | 46 | Some path -> 141 let add_wop t ty path = t.paths <- (ty, path) :: t.paths 149 let set_read_lowpath t path = t.read_lowpath <- get_lowest path t.read_lowpath 150 let set_write_lowpath t path = t.write_lowpath <- get_lowest path t.write_lowpath 152 let path_exists t path = Store.path_exists t.store path 173 let rm t perm path = 178 let ls t perm path = 180 set_read_lowpath t path; 183 let read t perm path = 185 set_read_lowpath t path; [all …]
|
A D | connection.ml | 26 path: string; RecordField 68 path = path; 70 is_relative = path.[0] <> '/' && path.[0] <> '@' 141 let get_watch_path con path = 142 if path.[0] = '@' || path.[0] = '/' then 143 path 146 rpath ^ path 154 let path = path ^ "/" in 203 let fire_watch watch path = 209 String.sub path n (m - n) [all …]
|
A D | utils.ml | 37 let get_hierarchy path = 38 let l = List.length path in 39 let revpath = List.rev path in 66 let trim_path path = 68 let rindex = String.rindex path '/' in 69 String.sub path 0 rindex 92 let path_complete path connection_path = 93 if String.get path 0 <> '/' then 94 connection_path ^ path 96 path [all …]
|
A D | connections.ml | 108 let key_of_str path = 109 if path.[0] = '@' 110 then [path] 113 let key_of_path path = 114 "" :: Store.Path.to_string_list path 116 let add_watch cons con path token = 127 let del_watch cons con path token = 137 (* path is absolute *) 138 let fire_watches cons path recurse = 139 let key = key_of_path path in [all …]
|
/xen-4.10.0-shim-comet/tools/xenstore/include/ |
A D | xenstore.h | 108 const char *path, unsigned int *num); 115 const char *path, unsigned int *len); 121 const char *path, const void *data, unsigned int len); 127 const char *path); 133 const char *path); 140 const char *path, unsigned int *num); 169 const char *path, struct xs_permissions *perms, 177 bool xs_watch(struct xs_handle *h, const char *path, const char *token); 207 bool xs_unwatch(struct xs_handle *h, const char *path, const char *token);
|
/xen-4.10.0-shim-comet/tools/misc/ |
A D | xenpvnetboot | 55 def mount(dev, path, option=''): argument 60 cmd = ' '.join([mountcmd, option, dev, path]) 66 def umount(path): argument 68 cmd = ['/usr/sbin/umount', path] 70 cmd = ['/bin/umount', path] 81 if not os.path.exists(self.tmpdir): 88 url = os.path.join(self.srcdir, filename) 90 … local_name = os.path.join(self.tmpdir, 'xenpvboot.%s.%s' % (os.path.basename(filename), suffix)) 156 … local_name = os.path.join(self.tmpdir, 'xenpvboot.%s.%s' % (os.path.basename(filename), suffix)) 221 or (os.path.exists(location) and os.path.isdir(location))): [all …]
|
/xen-4.10.0-shim-comet/tools/xenstore/ |
A D | xenstore_client.c | 110 if (xs_rm(xsh, xth, path)) { in do_rm() 141 e = xs_directory(h, XBT_NULL, path, &num); in do_ls() 143 err(1, "xs_directory (%s)", path); in do_ls() 153 path[strlen(path)-1] == '/' ? "" : "/", in do_ls() 234 if (!path[0]) in do_chmod() 246 PATH_SEP, path); in do_chmod() 354 strcpy(p, path); in perform() 355 path = p; in perform() 358 if (do_rm(path, xsh, xth)) { in perform() 383 free(path); in perform() [all …]
|
/xen-4.10.0-shim-comet/tools/xenstat/libxenstat/src/ |
A D | xenstat_qmp.c | 144 char **dev_ids, *tmp, *ptr, *image, path[80]; in lookup_xenstore_devid() local 149 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i", domid); in lookup_xenstore_devid() 166 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i/%i/params", domid, devid); in lookup_xenstore_devid() 178 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i/%i/sector-size", domid, devid); in lookup_xenstore_devid() 334 static int qmp_connect(char *path) in qmp_connect() argument 346 if (strlen(path) >= sizeof(sun.sun_path)) { in qmp_connect() 351 strcpy(sun.sun_path, path); in qmp_connect() 391 char path[80]; in read_attributes_qdisk_dom() local 395 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i", domain); in read_attributes_qdisk_dom() 402 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-4.10.0-shim-comet/tools/python/ |
A D | test.py | 463 if os.path.isdir(os.path.join("build", "lib.%s" % PLAT_SPEC)): 477 sys.path.insert(0, os.path.join(self.cwd, self.libdir)) 524 path = os.path.join(dir, modfname) 541 path = os.path.join(dir, file) 562 path = path[self._plen:-3] 585 if os.path.exists(dir): 588 if os.path.exists(d): 589 if os.path.isdir(d): 663 sys.path.append(utildir) 1080 print path [all …]
|
/xen-4.10.0-shim-comet/tools/pygrub/src/ |
A D | LiloConf.py | 10 def __init__(self, lines, path): argument 11 self.reset(lines, path) 20 def reset(self, lines, path): argument 25 self.path = path 48 self._kernel = (None, self.path + "/" + val) 54 self._initrd = (None, self.path + "/" + val) 108 path = os.path.dirname(self.filename) 121 self.add_image(LiloImage(img, path)) 139 self.add_image(LiloImage(img, path))
|
/xen-4.10.0-shim-comet/tools/python/xen/lowlevel/xs/ |
A D | xs.c | 104 char *path; in xspy_read() local 142 char *path; in xspy_write() local 176 char *path; in xspy_ls() local 219 char *path; in xspy_mkdir() local 227 result = xs_mkdir(xh, th, path); in xspy_mkdir() 247 char *path; in xspy_rm() local 255 result = xs_rm(xh, th, path); in xspy_rm() 274 char *path = NULL; in xspy_get_permissions() local 327 char *path; in xspy_set_permissions() local 421 char *path; in xspy_watch() local [all …]
|
/xen-4.10.0-shim-comet/tools/hotplug/FreeBSD/ |
A D | block | 13 path=$1 15 params=$(xenstore-read "$path/params") 19 xenstore-write $path/physical-device-path $params
|
/xen-4.10.0-shim-comet/tools/blktap2/control/ |
A D | tap-ctl-list.c | 48 if (entry->path) { in free_list() 49 free(entry->path); in free_list() 50 entry->path = NULL; in free_list() 69 *path = strdup(params + len + 1); in _parse_params() 71 if (!*type || !*path) { in _parse_params() 75 free(*path); in _parse_params() 76 *path = NULL; in _parse_params() 357 if (message.u.list.path[0] != 0) { in _tap_ctl_list_tapdisk() 359 sizeof(message.u.list.path)); in _tap_ctl_list_tapdisk() 524 if (path && (!entry->path || strcmp(entry->path, path))) in tap_ctl_find() [all …]
|
/xen-4.10.0-shim-comet/tools/libfsimage/common/ |
A D | fsimage.c | 39 fsi_t *fsi_open_fsimage(const char *path, uint64_t off, const char *options) in fsi_open_fsimage() argument 45 if ((fd = open(path, O_RDONLY)) == -1) in fsi_open_fsimage() 57 err = find_plugin(fsi, path, options); in fsi_open_fsimage() 82 int fsi_file_exists(fsi_t *fsi, const char *path) in fsi_file_exists() argument 86 if ((ffi = fsi_open_file(fsi, path)) == NULL) in fsi_file_exists() 93 fsi_file_t *fsi_open_file(fsi_t *fsi, const char *path) in fsi_open_file() argument 100 ffi = ops->fpo_open(fsi, path); in fsi_open_file()
|
/xen-4.10.0-shim-comet/tools/console/client/ |
A D | main.c | 99 static int get_pty_fd(struct xs_handle *xs, char *path, int seconds) in get_pty_fd() argument 122 pty_path = xs_read(xs, XBT_NULL, path, &len); in get_pty_fd() 342 char *dom_path = NULL, *path = NULL, *test = NULL; in main() local 428 path = malloc(strlen(dom_path) + strlen("/device/console/0/tty") + 5); in main() 429 if (path == NULL) in main() 433 test = xs_read(xs, XBT_NULL, path, NULL); in main() 446 snprintf(path, strlen(dom_path) + strlen("/vuart/0/tty") + 1, in main() 463 if (!xs_watch(xs, path, "")) in main() 471 spty = get_pty_fd(xs, path, 5); in main() 498 console_loop(spty, xs, path, interactive); in main() [all …]
|
/xen-4.10.0-shim-comet/docs/misc/ |
A D | xenstore.txt | 110 <path> 112 If <path> starts with a / it simply represents that path. 134 READ <path>| <value|> 135 WRITE <path>|<value|> 139 MKDIR <path>| 144 RM <path>| 153 <path>/<child-leaf-name>. 156 SET_PERMS <path>|<perm-as-string>|+? 170 When a <path> is modified (including path creation, removal, 208 <epath> is the event's path, ie the actual path that was [all …]
|
/xen-4.10.0-shim-comet/tools/blktap2/drivers/ |
A D | tapdisk-control.c | 52 char *path; member 76 if (td_control.path) { in tapdisk_control_close() 77 unlink(td_control.path); in tapdisk_control_close() 78 free(td_control.path); in tapdisk_control_close() 79 td_control.path = NULL; in tapdisk_control_close() 271 response.u.list.path[0] = 0; in tapdisk_control_list() 276 snprintf(response.u.list.path, in tapdisk_control_list() 277 sizeof(response.u.list.path), in tapdisk_control_list() 288 response.u.list.path[0] = 0; in tapdisk_control_list() 774 td_control.path = NULL; in tapdisk_control_create_socket() [all …]
|