Searched refs:child_stack (Results 1 – 5 of 5) sorted by relevance
/bionic/libc/bionic/ |
D | clone.cpp | 40 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()
|
D | pthread_create.cpp | 266 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.S | 17 movl 20(%esp), %ecx # child_stack
|
/bionic/tests/ |
D | sched_test.cpp | 31 void* child_stack[1024]; in TEST() local 34 pid_t tid = clone(child_fn, &child_stack[1024], CLONE_VM, &i); in TEST()
|
D | unistd_test.cpp | 594 void* child_stack[1024]; in CloneStartRoutine() local 595 return clone(start_routine, &child_stack[1024], SIGCHLD, nullptr); in CloneStartRoutine()
|