Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 155) sorted by relevance

1234567

/xen/tools/xenstat/libxenstat/src/
A Dxenstat.c145 if (node == NULL) in xenstat_get_node()
153 free(node); in xenstat_get_node()
170 free(node); in xenstat_get_node()
193 domain = node->domains + node->num_domains; in xenstat_get_node()
241 node->flags = 0; in xenstat_get_node()
252 return node; in xenstat_get_node()
255 free(node); in xenstat_get_node()
263 if (node) { in xenstat_free_node()
274 free(node); in xenstat_free_node()
461 node->domains[i].vcpus = malloc(node->domains[i].num_vcpus in xenstat_collect_vcpus()
[all …]
A Dxenstat.h51 void xenstat_free_node(xenstat_node * node);
58 xenstat_domain *xenstat_node_domain(xenstat_node * node,
62 xenstat_domain *xenstat_node_domain_by_index(xenstat_node * node,
66 const char *xenstat_node_xen_version(xenstat_node * node);
69 unsigned long long xenstat_node_tot_mem(xenstat_node * node);
72 unsigned long long xenstat_node_free_mem(xenstat_node * node);
75 unsigned int xenstat_node_num_domains(xenstat_node * node);
78 unsigned int xenstat_node_num_cpus(xenstat_node * node);
81 unsigned long long xenstat_node_cpu_hz(xenstat_node * node);
A Dxenstat_solaris.c239 tmp = xs_read(node->handle->xshandle, XBT_NULL, path, NULL); in collect_dom_networks()
268 int xenstat_collect_networks(xenstat_node * node) in xenstat_collect_networks() argument
271 priv_data_t *priv = get_priv_data(node->handle); in xenstat_collect_networks()
280 for (i = 0; i < node->num_domains; i++) { in xenstat_collect_networks()
281 if (node->domains[i].id == 0) in xenstat_collect_networks()
283 if (!collect_dom_networks(node, priv, &node->domains[i])) in xenstat_collect_networks()
378 int xenstat_collect_vbds(xenstat_node * node) in xenstat_collect_vbds() argument
381 priv_data_t *priv = get_priv_data(node->handle); in xenstat_collect_vbds()
390 for (i = 0; i < node->num_domains; i++) { in xenstat_collect_vbds()
391 if (node->domains[i].id == 0) in xenstat_collect_vbds()
[all …]
/xen/tools/xenstore/
A Dxenstored_core.c369 struct node *node; in read_node() local
421 node->children = node->data + node->datalen; in read_node()
529 struct node *node; in ask_parents() local
586 struct node *node; in get_node() local
823 struct node *node; in send_directory() local
839 struct node *node; in send_directory_part() local
891 struct node *node; in do_read() local
1047 struct node *node; in do_write() local
1082 struct node *node; in do_mkdir() local
1197 struct node *node; in do_rm() local
[all …]
A Dxenstored_watch.c47 char *node; member
115 const char *name, struct node *node, in watch_permitted() argument
119 struct node *parent; in watch_permitted()
128 if (!node) { in watch_permitted()
130 if (!node) in watch_permitted()
138 parent = node->parent; in watch_permitted()
161 struct node *node, bool exact, struct node_perms *perms) in fire_watches() argument
183 if (streq(name, watch->node)) in fire_watches()
263 char *node, *vec[2]; in do_unwatch() local
269 if (!node) in do_unwatch()
[all …]
A Dxenstored_transaction.c117 char *node; member
183 if (streq(i->node, name)) in find_accessed_node()
234 int access_node(struct connection *conn, struct node *node, in access_node() argument
259 trans_name = transaction_get_node_name(node, trans, node->name); in access_node()
268 i->node = talloc_strdup(i, node->name); in access_node()
269 if (!i->node) in access_node()
271 if (node->generation != NO_GENERATION && node->perms.num) { in access_node()
273 node->perms.num); in access_node()
353 set_tdb_key(i->node, &key); in finalize_transaction()
423 i->node); in destroy_transaction()
[all …]
A Dxenstored_core.h120 struct node { struct
124 struct node *parent; argument
156 char *canonicalize(struct connection *conn, const void *ctx, const char *node); argument
163 int write_node_raw(struct connection *conn, TDB_DATA *key, struct node *node,
167 struct node *read_node(struct connection *conn, const void *ctx,
177 bool is_valid_nodename(const char *node);
180 char *get_parent(const void *ctx, const char *node);
/xen/xen/common/
A Dradix-tree.c128 node = ptr_to_indirect(node); in radix_tree_extend()
173 if (node) { in radix_tree_insert()
182 node = slot; in radix_tree_insert()
191 if (node) { in radix_tree_insert()
192 node->count++; in radix_tree_insert()
221 node = indirect_to_ptr(node); in radix_tree_lookup_element()
430 if (!node) in radix_tree_gang_lookup()
439 node = indirect_to_ptr(node); in radix_tree_gang_lookup()
499 if (!node) in radix_tree_gang_lookup_slot()
508 node = indirect_to_ptr(node); in radix_tree_gang_lookup_slot()
[all …]
A Drbtree.c172 parent = node; in rb_insert_color()
212 parent = node; in rb_insert_color()
384 struct rb_node *child = node->rb_right, *tmp = node->rb_left; in rb_erase()
513 node = node->rb_right; in rb_next()
515 node=node->rb_left; in rb_next()
526 while ((parent = rb_parent(node)) && node == parent->rb_right) in rb_next()
527 node = parent; in rb_next()
545 node = node->rb_left; in rb_prev()
547 node=node->rb_right; in rb_prev()
555 while ((parent = rb_parent(node)) && node == parent->rb_left) in rb_prev()
[all …]
A Dpage_alloc.c450 #define heap(node, zone, order) ((*_heap[node])[zone][order]) argument
610 avail[node] = (void *)_heap[node] + (needed << PAGE_SHIFT) - in init_node_heap()
618 BUG_ON(!_heap[node] || !avail[node]); in init_node_heap()
814 nodeid_t first, node = MEMF_get_node(memflags), req_node = node; in get_free_buddy() local
849 first = node; in get_free_buddy()
920 nodeid_t node; in alloc_heap_pages() local
1181 node = 0; in node_to_scrub()
1195 node = cycle_node(node, node_online_map); in node_to_scrub()
1260 nodeid_t node; in scrub_free_pages() local
1843 if ( (node == -1) || (node == i) ) in avail_heap_pages()
[all …]
/xen/xen/include/xen/
A Dnodemask.h72 #define node_set(node, dst) __node_set((node), &(dst)) argument
78 #define node_clear(node, dst) __node_clear((node), &(dst)) argument
210 node < nbits; in __last_node()
211 node = __next_node(node, srcp, nbits)) in __last_node()
212 pnode = node; in __last_node()
266 (node) = next_node((node), (mask)))
270 for ((node) = 0; (node) < 1; (node)++)
282 #define node_online(node) nodemask_test(node, &node_online_map) argument
285 #define node_online(node) ((node) == 0) argument
288 #define node_set_online(node) set_bit((node), node_online_map.bits) argument
[all …]
A Drbtree.h116 #define RB_EMPTY_NODE(node) \ argument
117 ((node)->__rb_parent_color == (unsigned long)(node))
118 #define RB_CLEAR_NODE(node) \ argument
119 ((node)->__rb_parent_color = (unsigned long)(node))
134 static inline void rb_link_node(struct rb_node * node, struct rb_node * parent, in rb_link_node() argument
137 node->__rb_parent_color = (unsigned long )parent; in rb_link_node()
138 node->rb_left = node->rb_right = NULL; in rb_link_node()
140 *rb_link = node; in rb_link_node()
/xen/tools/ocaml/xenstored/
A Dtrie.ml36 let _get_key node = node.key
37 let get_value node =
42 let _get_children node = node.children
50 { node with children = child :: node.children }
80 let aux node =
81 f node.Node.key node.Node.value;
87 let aux node =
98 let aux accu node =
99 fold f node.Node.children (f node.Node.key node.Node.value accu)
111 then node
[all …]
A Dstore.ml31 let get_owner node = Perms.Node.get_owner node.perms
32 let get_children node = node.children
33 let get_value node = node.value
34 let get_perms node = node.perms
35 let get_name node = Symbol.to_string node.name
39 then node
45 { node with children = child :: node.children }
90 let rec recurse fct node = fct node; List.iter (recurse fct) node.children
99 let unpack node = (Symbol.to_string node.name, node.perms, node.value)
171 (node, Node.find node h) in
[all …]
/xen/xen/arch/arm/
A Dbootfdt.c25 name = fdt_get_name(fdt, node, NULL); in device_tree_node_matches()
43 prop = fdt_getprop(fdt, node, "compatible", &len); in device_tree_node_compatible()
98 const int first_node = node; in device_tree_for_each_node()
123 if ( node != first_node ) in device_tree_for_each_node()
130 node = fdt_next_node(fdt, node, &depth); in device_tree_for_each_node()
131 } while ( node >= 0 && depth > 0 ); in device_tree_for_each_node()
199 return device_tree_for_each_node(fdt, node, in process_reserved_memory()
219 parent_node = fdt_parent_offset(fdt, node); in process_multiboot_node()
422 int node; in boot_fdt_cmdline() local
425 node = fdt_path_offset(fdt, "/chosen"); in boot_fdt_cmdline()
[all …]
/xen/xen/xsm/flask/
A Davc.c282 xfree(node); in avc_node_free()
295 xfree(node); in avc_node_kill()
349 if (!node) in avc_alloc_node()
361 return node; in avc_alloc_node()
370 memcpy(&node->ae.avd, avd, sizeof(node->ae.avd)); in avc_node_populate()
417 if ( node ) in avc_lookup()
422 return node; in avc_lookup()
479 if ( node ) in avc_insert()
507 return node; in avc_insert()
627 if ( !node ) in avc_update_node()
[all …]
/xen/xen/arch/x86/
A Dsrat.c33 nodeid_t node; member
67 nodeid_t node; in setup_node() local
98 node = nodes_found++; in setup_node()
102 pxm2node[idx].node = node; in setup_node()
104 return node; in setup_node()
208 nodeid_t node; in acpi_numa_x2apic_affinity_init() local
224 node = setup_node(pxm); in acpi_numa_x2apic_affinity_init()
242 nodeid_t node; in acpi_numa_processor_affinity_init() local
258 node = setup_node(pxm); in acpi_numa_processor_affinity_init()
276 nodeid_t node; in acpi_numa_memory_affinity_init() local
[all …]
A Dnuma.c207 struct node nodes[MAX_NUMNODES]; in numa_emulation()
289 cpu_to_node[cpu] = node; in numa_set_node()
336 nodeid_t node; in init_cpu_to_node() local
344 if ( node == NUMA_NO_NODE || !node_online(node) ) in init_cpu_to_node()
345 node = 0; in init_cpu_to_node()
346 numa_set_node(i, node); in init_cpu_to_node()
352 unsigned int node; in arch_get_dma_bitsize() local
354 for_each_online_node(node) in arch_get_dma_bitsize()
355 if ( node_spanned_pages(node) && in arch_get_dma_bitsize()
358 if ( node >= MAX_NUMNODES ) in arch_get_dma_bitsize()
[all …]
/xen/xen/arch/arm/efi/
A Defi-boot.h23 int node; in setup_chosen_node() local
33 if ( node < 0 ) in setup_chosen_node()
36 if ( node < 0 ) in setup_chosen_node()
37 return node; in setup_chosen_node()
76 return node; in setup_chosen_node()
196 int node; in fdt_add_uefi_nodes() local
214 if ( node < 0 ) in fdt_add_uefi_nodes()
224 prev = node; in fdt_add_uefi_nodes()
237 if ( node < 0 ) in fdt_add_uefi_nodes()
240 if ( node < 0 ) in fdt_add_uefi_nodes()
[all …]
/xen/xen/xsm/flask/ss/
A Dconditional.c158 xfree(node); in cond_node_destroy()
349 list->node = node_ptr; in cond_insertf()
456 node->expr = expr; in cond_read_node()
465 if ( cond_read_av_list(p, fp, &node->false_list, node->true_list) != 0 ) in cond_read_node()
469 cond_node_destroy(node); in cond_read_node()
493 if ( !node ) in cond_read_list()
502 last->next = node; in cond_read_list()
504 last = node; in cond_read_list()
519 struct avtab_node *node; in cond_compute_av() local
524 for( node = avtab_search_node(ctab, key); node != NULL; in cond_compute_av()
[all …]
A Debitmap.c29 n1 = e1->node; in ebitmap_cmp()
30 n2 = e2->node; in ebitmap_cmp()
49 n = src->node; in ebitmap_cpy()
82 n1 = e1->node; in ebitmap_contains()
83 n2 = e2->node; in ebitmap_contains()
114 n = e->node; in ebitmap_get_bit()
130 n = e->node; in ebitmap_set_bit()
197 e->node = new; in ebitmap_set_bit()
210 n = e->node; in ebitmap_destroy()
219 e->node = NULL; in ebitmap_destroy()
[all …]
/xen/xen/include/asm-x86/
A Dnuma.h16 #define parent_node(node) (node) argument
17 #define node_to_first_cpu(node) (__ffs(node_to_cpumask[node])) argument
18 #define node_to_cpumask(node) (node_to_cpumask[node]) argument
20 struct node { struct
24 extern int compute_hash_shift(struct node *nodes, int numnodes, argument
37 extern void numa_set_node(int cpu, nodeid_t node);
78 extern int valid_numa_range(u64 start, u64 end, nodeid_t node);
/xen/xen/arch/arm/platforms/
A Dexynos5.c44 struct dt_device_node *node; in exynos5_init_time() local
49 if ( !node ) in exynos5_init_time()
55 rc = dt_device_get_address(node, 0, &mct_base_addr, &size); in exynos5_init_time()
97 struct dt_device_node *node; in exynos5_smp_init() local
106 if ( node ) in exynos5_smp_init()
121 node = dt_find_compatible_node(NULL, NULL, compatible); in exynos5_smp_init()
122 if ( !node ) in exynos5_smp_init()
128 rc = dt_device_get_address(node, 0, &sysram_addr, &size); in exynos5_smp_init()
194 struct dt_device_node *node; in exynos5_get_pmu_baseandsize() local
204 node = dt_find_matching_node(NULL, exynos_dt_pmu_matches); in exynos5_get_pmu_baseandsize()
[all …]
A Dbrcm.c42 const struct dt_device_node *node; in brcm_get_dt_node() local
46 node = dt_find_compatible_node(NULL, NULL, compat_str); in brcm_get_dt_node()
47 if ( !node ) in brcm_get_dt_node()
53 rc = dt_device_get_address(node, 0, &reg_base_64, NULL); in brcm_get_dt_node()
61 *dn = node; in brcm_get_dt_node()
72 const struct dt_device_node *node; in brcm_populate_plat_regs() local
76 rc = brcm_get_dt_node("brcm,brcmstb-cpu-biu-ctrl", &node, &reg_base); in brcm_populate_plat_regs()
80 if ( !dt_property_read_u32(node, "cpu-reset-config-reg", &val) ) in brcm_populate_plat_regs()
87 if ( !dt_property_read_u32(node, "cpu0-pwr-zone-ctrl-reg", &val) ) in brcm_populate_plat_regs()
94 if ( !dt_property_read_u32(node, "scratch-reg", &val) ) in brcm_populate_plat_regs()
/xen/tools/libxl/
A Dcheck-xl-vcpupin-parse218 node=$(($RANDOM % nr_nodes))
231 node=$(($RANDOM % nr_nodes))
237 if [ $node -eq 0 ]; then
239 elif [ $node -eq $((nr_nodes - 1)) ]; then
244 write "all,^nodes:$node" 0 "cpumap: $expected_range"
272 node=$(($RANDOM % nr_nodes))
279 if [ $cpu -eq $((nr_cpus_per_node*node)) ]; then
281 elif [ $cpu -eq $((nr_cpus_per_node*node + 1)) ]; then
283 elif [ $cpu -eq $((nr_cpus_per_node*(node+1) - 2)) ]; then
285 elif [ $cpu -eq $((nr_cpus_per_node*(node+1) - 1)) ]; then
[all …]

Completed in 43 milliseconds

1234567