• Home
  • Raw
  • Download

Lines Matching full:stack

55  *   1. hppa takes bottom of stack and no stacksize (stack grows up)
56 * 2. __ia64__ takes bottom of stack and uses clone2
57 * 3. all others take top of stack (stack grows down)
61 size_t stack_size, void *stack, pid_t *ptid, void *tls, pid_t *ctid) in ltp_clone_() argument
66 ret = __clone2(fn, stack, stack_size, flags, arg, ptid, tls, ctid); in ltp_clone_()
70 * These arches grow their stack up, so don't need to adjust the base. in ltp_clone_()
75 * For archs where stack grows downwards, stack points to the topmost in ltp_clone_()
76 * address of the memory space set up for the child stack. in ltp_clone_()
78 if (stack) in ltp_clone_()
79 stack += stack_size; in ltp_clone_()
82 ret = clone(fn, stack, flags, arg, ptid, tls, ctid); in ltp_clone_()
89 size_t stack_size, void *stack) in ltp_clone() argument
91 return ltp_clone_(flags, fn, arg, stack_size, stack, NULL, NULL, NULL); in ltp_clone()
95 size_t stack_size, void *stack, ...) in ltp_clone7() argument
101 va_start(arg_clone, stack); in ltp_clone7()
107 return ltp_clone_(flags, fn, arg, stack_size, stack, ptid, tls, ctid); in ltp_clone7()
111 * ltp_alloc_stack: allocate stack of size 'size', that is sufficiently
114 * Returns pointer to new stack. On error, returns NULL with errno set.
136 void *stack; in ltp_clone_alloc() local
140 stack = ltp_alloc_stack(stack_size); in ltp_clone_alloc()
141 if (stack == NULL) in ltp_clone_alloc()
144 ret = ltp_clone(clone_flags, fn, arg, stack_size, stack); in ltp_clone_alloc()
148 free(stack); in ltp_clone_alloc()
156 * ltp_clone_quick: calls ltp_clone_alloc with predetermined stack size.