• Home
  • Raw
  • Download

Lines Matching full:stack

54 # define clone(fn, stack, flags, arg, ptid, tls, ctid) \  argument
55 clone(fn, stack, flags, arg)
60 * 1. hppa takes bottom of stack and no stacksize (stack grows up)
61 * 2. __ia64__ takes bottom of stack and uses clone2
62 * 3. all others take top of stack (stack grows down)
66 size_t stack_size, void *stack, pid_t *ptid, void *tls, pid_t *ctid) in ltp_clone_() argument
71 ret = __clone2(fn, stack, stack_size, flags, arg, ptid, tls, ctid); in ltp_clone_()
75 * These arches grow their stack up, so don't need to adjust the base. in ltp_clone_()
80 * For archs where stack grows downwards, stack points to the topmost in ltp_clone_()
81 * address of the memory space set up for the child stack. in ltp_clone_()
83 if (stack) in ltp_clone_()
84 stack += stack_size; in ltp_clone_()
87 ret = clone(fn, stack, flags, arg, ptid, tls, ctid); in ltp_clone_()
94 size_t stack_size, void *stack) in ltp_clone() argument
96 return ltp_clone_(flags, fn, arg, stack_size, stack, NULL, NULL, NULL); in ltp_clone()
100 size_t stack_size, void *stack, ...) in ltp_clone7() argument
106 va_start(arg_clone, stack); in ltp_clone7()
113 return ltp_clone_(flags, fn, arg, stack_size, stack, ptid, tls, ctid); in ltp_clone7()
121 * ltp_alloc_stack: allocate stack of size 'size', that is sufficiently
124 * Returns pointer to new stack. On error, returns NULL with errno set.
146 void *stack; in ltp_clone_alloc() local
150 stack = ltp_alloc_stack(stack_size); in ltp_clone_alloc()
151 if (stack == NULL) in ltp_clone_alloc()
154 ret = ltp_clone(clone_flags, fn, arg, stack_size, stack); in ltp_clone_alloc()
158 free(stack); in ltp_clone_alloc()
166 * ltp_clone_quick: calls ltp_clone_alloc with predetermined stack size.