Searched refs:child_stack (Results 1 - 5 of 5) sorted by relevance
/bionic/libc/bionic/ |
H A D | clone.cpp | 40 extern "C" pid_t __bionic_clone(uint32_t flags, void* child_stack, int* parent_tid, void* tls, int* child_tid, int (*fn)(void*), void* arg); 57 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) { argument 62 if (fn != nullptr && child_stack == nullptr) { 81 // Align 'child_stack' to 16 bytes. 82 uintptr_t child_stack_addr = reinterpret_cast<uintptr_t>(child_stack); 84 child_stack = reinterpret_cast<void*>(child_stack_addr); 102 clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg); 105 clone_result = syscall(__NR_clone, flags, child_stack, parent_tid, child_tid, new_tls); 107 clone_result = syscall(__NR_clone, flags, child_stack, parent_tid, new_tls, child_tid);
|
H A D | pthread_create.cpp | 192 static int __allocate_thread(pthread_attr_t* attr, pthread_internal_t** threadp, void** child_stack) { argument 239 *child_stack = stack_top; 282 void* child_stack = NULL; local 283 int result = __allocate_thread(&thread_attr, &thread, &child_stack); 312 int rc = clone(__pthread_start, child_stack, flags, thread, &(thread->tid), tls, &(thread->tid));
|
/bionic/libc/arch-x86/bionic/ |
H A D | __bionic_clone.S | 3 // pid_t __bionic_clone(int flags, void* child_stack, pid_t* parent_tid, void* tls, pid_t* child_tid, int (*fn)(void*), void* arg); 17 movl 20(%esp), %ecx # child_stack
|
/bionic/tests/ |
H A D | sched_test.cpp | 31 void* child_stack[1024]; local 34 pid_t tid = clone(child_fn, &child_stack[1024], CLONE_VM, &i);
|
H A D | unistd_test.cpp | 541 void* child_stack[1024]; local 542 return clone(start_routine, &child_stack[1024], SIGCHLD, NULL);
|
Completed in 191 milliseconds