Home
last modified time | relevance | path

Searched refs:child_stack (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/bionic/
Dclone.cpp40 extern "C" pid_t __bionic_clone(uint32_t flags, void* child_stack, int* parent_tid, void* tls, int*…
58 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) { in clone() argument
63 if (fn != nullptr && child_stack == nullptr) { in clone()
83 uintptr_t child_stack_addr = reinterpret_cast<uintptr_t>(child_stack); in clone()
85 child_stack = reinterpret_cast<void*>(child_stack_addr); in clone()
103 clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg); in clone()
106 clone_result = syscall(__NR_clone, flags, child_stack, parent_tid, child_tid, new_tls); in clone()
108 clone_result = syscall(__NR_clone, flags, child_stack, parent_tid, new_tls, child_tid); in clone()
Dpthread_create.cpp266 static int __allocate_thread(pthread_attr_t* attr, bionic_tcb** tcbp, void** child_stack) { in __allocate_thread() argument
326 *child_stack = stack_top; in __allocate_thread()
412 void* child_stack = nullptr; in pthread_create() local
413 int result = __allocate_thread(&thread_attr, &tcb, &child_stack); in pthread_create()
450 int rc = clone(__pthread_start, child_stack, flags, thread, &(thread->tid), tls, &(thread->tid)); in pthread_create()
/bionic/libc/arch-x86/bionic/
D__bionic_clone.S17 movl 20(%esp), %ecx # child_stack
/bionic/tests/
Dsched_test.cpp31 void* child_stack[1024]; in TEST() local
34 pid_t tid = clone(child_fn, &child_stack[1024], CLONE_VM, &i); in TEST()
Dunistd_test.cpp594 void* child_stack[1024]; in CloneStartRoutine() local
595 return clone(start_routine, &child_stack[1024], SIGCHLD, nullptr); in CloneStartRoutine()