Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 47) sorted by relevance

12

/xen-4.10.0-shim-comet/tools/blktap2/control/
A Dtap-ctl-spawn.c42 int err, child, channel[2]; in __tap_ctl_spawn() local
50 if ((child = fork()) == -1) { in __tap_ctl_spawn()
55 if (child) { in __tap_ctl_spawn()
58 return child; in __tap_ctl_spawn()
101 tap_ctl_wait(pid_t child) in tap_ctl_wait() argument
106 pid = waitpid(child, &status, 0); in tap_ctl_wait()
156 pid_t child; in tap_ctl_spawn() local
161 child = __tap_ctl_spawn(&readfd); in tap_ctl_spawn()
162 if (child < 0) in tap_ctl_spawn()
163 return child; in tap_ctl_spawn()
[all …]
/xen-4.10.0-shim-comet/xen/tools/kconfig/
A Dconf.c238 struct menu *child; in conf_choice() local
273 for (child = menu->list; child; child = child->next) { in conf_choice()
332 for (child = menu->list; child; child = child->next) { in conf_choice()
333 if (!child->sym || !menu_is_visible(child)) in conf_choice()
338 if (!child) in conf_choice()
345 for (child = child->list; child; child = child->next) { in conf_choice()
347 conf(child); in conf_choice()
358 struct menu *child; in conf() local
414 for (child = menu->list; child; child = child->next) in conf()
415 conf(child); in conf()
[all …]
A Dmconf.c470 struct menu *child; in build_conf() local
535 for (child = menu->list; child; child = child->next) { in build_conf()
536 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
537 def_menu = child; in build_conf()
640 for (child = menu->list; child; child = child->next) in build_conf()
641 build_conf(child); in build_conf()
803 struct menu *child; in conf_choice() local
813 for (child = menu->list; child; child = child->next) { in conf_choice()
816 if (child->sym) in conf_choice()
839 if (!child->sym) in conf_choice()
[all …]
A Dnconf.c737 struct menu *child; in build_conf() local
798 for (child = menu->list; child; child = child->next) { in build_conf()
799 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
800 def_menu = child; in build_conf()
914 for (child = menu->list; child; child = child->next) in build_conf()
915 build_conf(child); in build_conf()
1251 for (i = 0, child = menu->list; child; child = child->next) { in conf_choice()
1258 else if (child->sym) in conf_choice()
1329 child = item_data(); in conf_choice()
1330 if (!child || !menu_is_visible(child) || !child->sym) in conf_choice()
[all …]
A Dgconf.c1091 struct menu *child; in fill_row() local
1097 for (child = menu->list; child; child = child->next) { in fill_row()
1100 def_menu = child; in fill_row()
1338 struct menu *child; in display_tree() local
1346 for (child = menu->list; child; child = child->next) { in display_tree()
1347 prop = child->prompt; in display_tree()
1348 sym = child->sym; in display_tree()
1365 place_node(child, fill_row(child)); in display_tree()
1428 struct menu *child; in fixup_rootmenu() local
1432 for (child = menu->list; child; child = child->next) { in fixup_rootmenu()
[all …]
A Dkxgettext.c173 struct menu *child; in menu_build_message_list() local
184 for (child = menu->list; child != NULL; child = child->next) in menu_build_message_list()
185 if (child->prompt != NULL) in menu_build_message_list()
186 menu_build_message_list(child); in menu_build_message_list()
A Dqconf.cc603 struct menu* child; in updateMenuList() local
618 for (child = menu->list; child; child = child->next) { in updateMenuList()
620 type = child->prompt ? child->prompt->type : P_UNKNOWN; in updateMenuList()
628 if (child->flags & MENU_ROOT) in updateMenuList()
636 if (!menuSkip(child)) { in updateMenuList()
637 if (!child->sym && !child->list && !child->prompt) in updateMenuList()
1731 struct menu *child; in fixup_rootmenu() local
1735 for (child = menu->list; child; child = child->next) { in fixup_rootmenu()
1736 if (child->prompt && child->prompt->type == P_MENU) { in fixup_rootmenu()
1738 fixup_rootmenu(child); in fixup_rootmenu()
[all …]
A Dmenu.c460 struct menu *child; in menu_is_empty() local
462 for (child = menu->list; child; child = child->next) { in menu_is_empty()
463 if (menu_is_visible(child)) in menu_is_empty()
471 struct menu *child; in menu_is_visible() local
496 for (child = menu->list; child; child = child->next) { in menu_is_visible()
497 if (menu_is_visible(child)) { in menu_is_visible()
/xen-4.10.0-shim-comet/tools/xenstore/
A Dtalloc.c189 tc->child = NULL; in _talloc()
199 if (parent->child) { in _talloc()
512 while (tc->child) { in talloc_free_children()
518 void *child = TC_PTR_FROM_CHUNK(tc->child); in talloc_free_children() local
520 if (tc->child->refs) { in talloc_free_children()
586 if (tc->parent->child) { in talloc_free()
653 tc->parent->child = new_ptr; in _talloc_realloc()
655 if (tc->child) { in _talloc_realloc()
694 if (tc->parent->child) { in talloc_steal()
714 if (tc->parent->child) { in talloc_steal()
[all …]
A Dxenstored_watch.c60 static bool is_child(const char *child, const char *parent) in is_child() argument
71 if (strncmp(child, parent, len) != 0) in is_child()
74 return child[len] == '/' || child[len] == '\0'; in is_child()
A Dtalloc_guide.txt25 and the pointer X->name would be a "child" of the talloc context "X"
26 which is itself a child of mem_ctx. So if you do talloc_free(mem_ctx)
69 The returned pointer is a "child" of the supplied context. This means
70 that if you talloc_free() the context then the new child disappears as
71 well. Alternatively you can free just the child.
138 pointer as a child of its current parent.
174 one destructor then you can create a zero-length child of the pointer
208 The talloc_set_name() function allocates memory as a child of the
307 currently a child of is going to be freed and you wish to keep the
323 by this pointer and all child pointers. Mostly useful for debugging.
[all …]
A Dxenstored_core.c823 char *child, *data; in send_directory_part() local
849 child = node->children + off; in send_directory_part()
851 while (len + strlen(child) < maxlen) { in send_directory_part()
852 len += strlen(child) + 1; in send_directory_part()
853 child += strlen(child) + 1; in send_directory_part()
1087 struct node *child; in delete_node() local
1092 if (child) { in delete_node()
1093 delete_node(conn, child); in delete_node()
1513 node->children = (char *)child; in manual_node()
1514 if (child) in manual_node()
[all …]
/xen-4.10.0-shim-comet/xen/common/
A Drbtree.c220 struct rb_node *child, *parent; in rb_erase() local
224 child = node->rb_right; in rb_erase()
226 child = node->rb_left; in rb_erase()
243 child = node->rb_right; in rb_erase()
250 if (child) in rb_erase()
252 parent->rb_left = child; in rb_erase()
268 if (child) in rb_erase()
269 rb_set_parent(child, parent); in rb_erase()
273 parent->rb_left = child; in rb_erase()
275 parent->rb_right = child; in rb_erase()
[all …]
/xen-4.10.0-shim-comet/tools/xl/
A Dxl.c217 pid_t xl_fork(xlchildnum child, const char *description) { in xl_fork() argument
218 xlchild *ch = &children[child]; in xl_fork()
240 pid_t xl_waitpid(xlchildnum child, int *status, int flags) in xl_waitpid() argument
242 xlchild *ch = &children[child]; in xl_waitpid()
261 int xl_child_pid(xlchildnum child) in xl_child_pid() argument
263 xlchild *ch = &children[child]; in xl_child_pid()
268 xlchildnum child, pid_t pid, int status) in xl_report_child_exitstatus() argument
397 int child_report(xlchildnum child) in child_report() argument
400 pid_t got = xl_waitpid(child, &status, 0); in child_report()
403 children[child].description, strerror(errno)); in child_report()
[all …]
A Dxl_migrate.c39 pid_t child; in create_migration_child() local
49 if (!child) { in create_migration_child()
68 return child; in create_migration_child()
92 pid_t child; in migration_child_report() local
104 child = xl_waitpid(child_migration, &status, WNOHANG); in migration_child_report()
106 if (child == migration_child) { in migration_child_report()
112 if (child == -1) { in migration_child_report()
117 assert(child == 0); in migration_child_report()
182 pid_t child = -1; in migrate_domain() local
199 child = create_migration_child(rune, &send_fd, &recv_fd); in migrate_domain()
[all …]
/xen-4.10.0-shim-comet/tools/libxl/
A Dlibxl_colo.h24 #define ASYNC_CALL(egc, ao, child, param, func, callback) do { \ argument
28 pid = libxl__ev_child_fork(gc, child, callback); \
43 callback(egc, child, -1, 1); \
93 libxl__ev_child child; member
A Dlibxl_exec.c281 pid_t child; in libxl__spawn_spawn() local
309 child = in libxl__spawn_spawn()
314 if (child == -1) in libxl__spawn_spawn()
316 if (!child) { in libxl__spawn_spawn()
320 int failsig = ss->midproc_cb(gc, ss, child); in libxl__spawn_spawn()
322 kill(child, failsig); in libxl__spawn_spawn()
327 pid_t got = waitpid(child, &status, 0); in libxl__spawn_spawn()
332 assert(got == child); in libxl__spawn_spawn()
363 pid_t child = ss->mid.pid; in spawn_detach() local
364 r = kill(child, SIGKILL); in spawn_detach()
[all …]
A Dlibxl_aoutils.c413 libxl__openpty_state *op = CONTAINER_OF(child, *op, child); in openpty_exited()
512 if (libxl__ev_child_inuse(&op->child)) { in libxl__openptys()
538 assert(libxl__ev_child_inuse(&aes->child)); in async_exec_timeout()
541 if (kill(aes->child.pid, SIGKILL)) { in async_exec_timeout()
543 aes->what, (unsigned long)aes->child.pid); in async_exec_timeout()
550 libxl__ev_child *child, in async_exec_done() argument
553 libxl__async_exec_state *aes = CONTAINER_OF(child, *aes, child); in async_exec_done()
570 libxl__ev_child_init(&aes->child); in libxl__async_exec_init()
580 libxl__ev_child *const child = &aes->child; in libxl__async_exec_start() local
596 pid = libxl__ev_child_fork(gc, child, async_exec_done); in libxl__async_exec_start()
[all …]
A Dlibxl_convert_callout.c42 libxl__ev_child_init(&chs->child); in libxl__conversion_helper_init()
68 pid_t pid = libxl__ev_child_fork(gc, &chs->child, helper_exited); in libxl__convert_legacy_stream()
131 libxl__kill(gc, chs->child.pid, SIGTERM, "conversion helper"); in libxl__conversion_helper_abort()
148 libxl__conversion_helper_state *chs = CONTAINER_OF(ch, *chs, child); in helper_exited()
A Dlibxl_remus_disk_drbd.c158 libxl__ev_child *child,
184 ASYNC_CALL(egc, dev->cds->ao, &dev->aodev.child, dev, in drbd_preresume()
203 libxl__ev_child *child, in checkpoint_async_call_done() argument
207 libxl__ao_device *aodev = CONTAINER_OF(child, *aodev, child); in checkpoint_async_call_done()
A Dlibxl_bootloader.c38 static void bootloader_finished(libxl__egc *egc, libxl__ev_child *child,
221 libxl__ev_child_init(&bl->child); in libxl__bootloader_init()
300 if (libxl__ev_child_inuse(&bl->child)) { in bootloader_stop()
301 r = kill(bl->child.pid, SIGTERM); in bootloader_stop()
303 rc ? "after failure, " : "", (unsigned long)bl->child.pid); in bootloader_stop()
561 pid_t pid = libxl__ev_child_fork(gc, &bl->child, bootloader_finished); in bootloader_gotptys()
635 static void bootloader_finished(libxl__egc *egc, libxl__ev_child *child, in bootloader_finished() argument
638 libxl__bootloader_state *bl = CONTAINER_OF(child, *bl, child); in bootloader_finished()
A Dlibxl_save_callout.c122 libxl__ev_child_init(&shs->child); in libxl__save_helper_init()
212 pid_t pid = libxl__ev_child_fork(gc, &shs->child, helper_exited); in run_helper()
264 libxl__kill(gc, shs->child.pid, SIGKILL, "save/restore helper"); in helper_failed()
280 libxl__kill(gc, shs->child.pid, SIGTERM, "save/restore helper"); in helper_stop()
325 libxl__save_helper_state *shs = CONTAINER_OF(ch, *shs, child); in helper_exited()
A Dlibxl_no_convert_callout.c21 libxl__ev_child_init(&chs->child); in libxl__conversion_helper_init()
A Dlibxl_colo_save.c103 libxl__ev_child_init(&css->child); in libxl__colo_save_setup()
532 libxl__ev_child *child,
541 ASYNC_CALL(egc, dss->cds.ao, &css->child, css, in colo_proxy_wait_for_checkpoint()
564 libxl__ev_child *child, in colo_proxy_async_call_done() argument
568 libxl__colo_save_state *css = CONTAINER_OF(child, *css, child); in colo_proxy_async_call_done()
A Dlibxl_event.c2213 libxl__ao *child = NULL, *root; in libxl__nested_ao_create() local
2219 child = libxl__zalloc(&ctx->nogc_gc, sizeof(*child)); in libxl__nested_ao_create()
2220 child->magic = LIBXL__AO_MAGIC; in libxl__nested_ao_create()
2221 child->nested_root = root; in libxl__nested_ao_create()
2224 LIBXL_INIT_GC(child->gc, ctx); in libxl__nested_ao_create()
2225 libxl__gc *gc = &child->gc; in libxl__nested_ao_create()
2228 return child; in libxl__nested_ao_create()
2233 assert(child->magic == LIBXL__AO_MAGIC); in libxl__nested_ao_free()
2234 libxl__ao *root = child->nested_root; in libxl__nested_ao_free()
2238 libxl_ctx *ctx = libxl__gc_owner(&child->gc); in libxl__nested_ao_free()
[all …]

Completed in 54 milliseconds

12