/haiku/headers/private/kernel/arch/ |
H A D | thread.h | 22 status_t arch_thread_init_tls(Thread *thread); 24 void arch_thread_init_kthread_stack(Thread *thread, void *stack, 30 bool arch_on_signal_stack(Thread *thread); 31 status_t arch_setup_signal_frame(Thread *thread, struct sigaction *action,
|
/haiku/src/kits/debug/arch/arm/ |
H A D | arch_debug_support.cpp | 15 arch_debug_get_instruction_pointer(debug_context *context, thread_id thread, argument
|
/haiku/src/kits/debug/arch/ppc/ |
H A D | arch_debug_support.cpp | 13 arch_debug_get_instruction_pointer(debug_context *context, thread_id thread, argument
|
/haiku/src/system/kernel/arch/ppc/ |
H A D | arch_thread.cpp | 15 #include <arch/thread.h> 18 #include <thread.h> 26 // a new thread structure. 29 // Helper function for thread creation, defined in arch_asm.S. 49 /** Returns the current iframe structure of the running thread. 57 Thread *thread = thread_get_current_thread(); local 59 ASSERT(thread->arch_info.iframes.index >= 0); 60 return thread->arch_info.iframes.frames[thread->arch_info.iframes.index - 1]; 64 /** \brief Returns the current thread' 73 Thread *thread = thread_get_current_thread(); local 108 arch_thread_init_thread_struct(Thread *thread) argument 118 arch_thread_init_kthread_stack(Thread* thread, void* _stack, void* _stackTop, void (*function)(void*), const void* data) argument 165 arch_thread_init_tls(Thread *thread) argument 204 arch_thread_enter_userspace(Thread *thread, addr_t entry, void *arg1, void *arg2) argument 212 arch_on_signal_stack(Thread *thread) argument 219 arch_setup_signal_frame(Thread *thread, struct sigaction *sa, struct signal_frame_data *signalFrameData) argument [all...] |
/haiku/headers/private/kernel/arch/x86/ |
H A D | arch_thread.h | 24 struct iframe* x86_get_thread_user_iframe(Thread* thread); 27 void x86_initial_return_to_userland(Thread* thread, struct iframe* iframe); 30 void x86_set_tls_context(Thread* thread); 48 // Point GS segment base at thread architecture data. 49 t->arch_info.thread = t;
|
/haiku/src/add-ons/kernel/debugger/invalidate_on_exit/ |
H A D | invalidate_on_exit.cpp | 54 thread_id thread = spawn_kernel_thread(&invalidate_loop, 56 if (thread < B_OK) 57 return thread; 59 resume_thread(thread); 62 // deleting the sem will also cause the thread to exit
|
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/headers/ |
H A D | KPPPReportManager.h | 25 static bool SendReport(thread_id thread, const ppp_report_packet *report); 28 void EnableReports(ppp_report_type type, thread_id thread, 30 void DisableReports(ppp_report_type type, thread_id thread); 31 bool DoesReport(ppp_report_type type, thread_id thread);
|
/haiku/src/system/libroot/posix/sys/ |
H A D | priority.c | 112 thread_info thread; local 114 while (get_next_thread_info(who, &th_cookie, &thread) == B_OK) { 115 if (thread.priority > out) { 117 out = thread.priority; 126 thread_info thread; local 133 while (get_next_thread_info(team.team, &th_cookie, &thread) 135 if (thread.priority > out) { 137 out = thread.priority; 152 thread_info thread; local 158 while (get_next_thread_info(team.team, &th_cookie, &thread) 181 thread_info thread; local [all...] |
/haiku/src/servers/registrar/ |
H A D | RosterAppInfo.cpp | 32 RosterAppInfo::Init(thread_id thread, team_id team, port_id port, uint32 flags, argument 35 this->thread = thread; 57 clone->Init(thread, team, port, flags, &ref, signature);
|
/haiku/src/kits/debug/arch/arm64/ |
H A D | arch_debug_support.cpp | 11 arch_debug_get_instruction_pointer(debug_context *context, thread_id thread, argument
|
/haiku/src/system/kernel/arch/m68k/ |
H A D | arch_thread.cpp | 20 #include <arch/thread.h> 23 #include <thread.h> 36 // a new thread structure. 41 // Helper function for thread creation, defined in arch_asm.S. 61 /** Returns the current iframe structure of the running thread. 69 Thread *thread = thread_get_current_thread(); local 71 ASSERT(thread->arch_info.iframes.index >= 0); 72 return thread->arch_info.iframes.frames[thread->arch_info.iframes.index - 1]; 76 /** \brief Returns the current thread' 85 Thread *thread = thread_get_current_thread(); local 136 arch_thread_init_thread_struct(Thread *thread) argument 146 arch_thread_init_kthread_stack(Thread* thread, void* _stack, void* _stackTop, void (*function)(void*), const void* data) argument 193 arch_thread_init_tls(Thread *thread) argument 228 arch_thread_enter_userspace(Thread *thread, addr_t entry, void *arg1, void *arg2) argument 236 arch_on_signal_stack(Thread *thread) argument 243 arch_setup_signal_frame(Thread *thread, struct sigaction *sa, struct signal_frame_data *signalFrameData) argument [all...] |
H A D | arch_debug.cpp | 19 #include <thread.h> 82 print_stack_frame(Thread *thread, addr_t ip, addr_t framePointer, argument 97 if (status != B_OK && !IS_KERNEL_ADDRESS(ip) && thread) { 99 status = image_debug_lookup_user_symbol_address(thread->team, ip, 122 Thread *thread; local 127 thread = thread_get_current_thread(); 132 thread = Thread::GetDebug(id); 133 if (thread == NULL) { 134 kprintf("could not find thread %ld\n", id); 138 // read %ebp from the thread' 265 arch_debug_contains_call(Thread *thread, const char *symbol, addr_t start, addr_t end) argument 286 Thread* thread = thread_get_current_thread(); local [all...] |
/haiku/headers/compatibility/bsd/ |
H A D | pthread.h | 21 extern int pthread_attr_get_np(pthread_t thread, pthread_attr_t* attr);
|
/haiku/src/system/kernel/arch/x86/64/ |
H A D | thread.cpp | 12 #include <arch/thread.h> 25 #include <thread.h> 72 // Initial thread saved state. 84 Thread* thread = thread_get_current_thread(); local 86 atomic_and(&thread->flags, ~THREAD_FLAGS_RESTART_SYSCALL); 87 atomic_or(&thread->flags, THREAD_FLAGS_SYSCALL_RESTARTED); 99 x86_set_tls_context(Thread* thread) argument 102 x86_write_msr(IA32_MSR_FS_BASE, thread->user_local_storage); 103 x86_write_msr(IA32_MSR_KERNEL_GS_BASE, thread->arch_info.user_gs_base); 121 get_signal_stack(Thread* thread, ifram argument 159 Thread* thread = thread_get_current_thread(); local 216 arch_thread_init_thread_struct(Thread* thread) argument 237 arch_thread_init_kthread_stack(Thread* thread, void* _stack, void* _stackTop, void (*function)(void*), const void* data) argument 262 arch_thread* thread = (arch_thread*)info; local 274 arch_thread_enter_userspace(Thread* thread, addr_t entry, void* args1, void* args2) argument 342 arch_setup_signal_frame(Thread* thread, struct sigaction* action, struct signal_frame_data* signalFrameData) argument 446 Thread* thread = thread_get_current_thread(); local [all...] |
/haiku/src/system/kernel/arch/sparc/ |
H A D | arch_thread.cpp | 9 #include <arch/thread.h> 12 #include <thread.h> 35 arch_thread_init_thread_struct(Thread *thread) argument 38 //memcpy(&thread->arch_info, &sInitialState, sizeof(struct arch_thread)); 45 arch_thread_init_kthread_stack(Thread* thread, void* _stack, void* _stackTop, argument 92 arch_thread_init_tls(Thread *thread) argument 112 arch_thread_enter_userspace(Thread *thread, addr_t entry, void *arg1, void *arg2) argument 120 arch_on_signal_stack(Thread *thread) argument 127 arch_setup_signal_frame(Thread *thread, struct sigaction *sa, argument 155 * arch_thread_enter_uspace() as thread "starte [all...] |
/haiku/src/system/kernel/debug/ |
H A D | user_debugger.cpp | 29 #include <thread.h> 60 // a profiling timer for each CPU -- used when a profiled thread is running 64 static void schedule_profiling_timer(Thread* thread, bigtime_t interval); 83 TRACE(("debugger_write(): thread: %" B_PRId32 ", team %" B_PRId32 ", " 132 /*! Updates the thread::flags field according to what user debugger flags are 133 set for the thread. 134 Interrupts must be disabled and the thread's debug info lock must be held. 137 update_thread_user_debug_flag(Thread* thread) argument 139 if ((atomic_get(&thread->debug_info.flags) & B_THREAD_DEBUG_STOP) != 0) 140 atomic_or(&thread 151 update_thread_breakpoints_flag(Thread* thread) argument 172 Thread* thread = team->thread_list; local 188 update_thread_debugger_installed_flag(Thread* thread) argument 206 Thread* thread = team->thread_list; local 453 Thread *thread = thread_get_current_thread(); local 481 Thread *thread = thread_get_current_thread(); local 517 Thread *thread = thread_get_current_thread(); local 534 Thread *thread = thread_get_current_thread(); local 819 Thread *thread = thread_get_current_thread(); local 835 Thread *thread = thread_get_current_thread(); local 867 Thread *thread = thread_get_current_thread(); local 935 Thread *thread = thread_get_current_thread(); local 959 Thread* thread = thread_get_current_thread(); local 986 Thread *thread = thread_get_current_thread(); local 1024 Thread *thread = thread_get_current_thread(); local 1046 user_debug_update_new_thread_flags(Thread* thread) argument 1061 Thread *thread = thread_get_current_thread(); local 1139 user_debug_thread_exiting(Thread* thread) argument 1209 Thread *thread = thread_get_current_thread(); local 1231 Thread *thread = thread_get_current_thread(); local 1277 Thread* thread = thread_get_current_thread(); local 1295 schedule_profiling_timer(Thread* thread, bigtime_t interval) argument 1312 Thread* thread = thread_get_current_thread(); local 1394 Thread* thread = thread_get_current_thread(); local 1447 Thread* thread = thread_get_current_thread(); local 1475 user_debug_thread_unscheduled(Thread* thread) argument 1501 user_debug_thread_scheduled(Thread* thread) argument 1528 Thread* thread = Thread::GetAndLock(threadInfo.thread); local 1621 Thread* thread = Thread::GetAndLock(threadID); local 1818 Thread* thread = Thread::GetAndLock(threadID); local 1867 Thread* thread = Thread::GetAndLock(threadID); local 2079 Thread* thread = Thread::GetAndLock(threadID); local 2131 Thread* thread = Thread::GetAndLock(threadID); local 2300 Thread* thread = Thread::GetAndLock(threadID); local 2375 Thread* thread = Thread::GetAndLock(threadID); local 2926 Thread* thread = Thread::GetAndLock(threadID); local [all...] |
/haiku/src/kits/shared/ |
H A D | RWLocker.cpp | 84 thread_id thread = find_thread(NULL); local 85 if (thread == fWriter) { 91 int32 index = _IndexOf(thread); 95 // The outer read lock bracket for the thread has been 111 // Returns whether or not the calling thread owns a read lock or even a 118 thread_id thread = find_thread(NULL); local 119 result = (thread == fWriter || _IndexOf(thread) >= 0); 149 thread_id thread = find_thread(NULL); local 150 if (thread 208 thread_id thread = find_thread(NULL); local 283 thread_id thread = find_thread(NULL); local 417 _NewReadLockInfo(thread_id thread, int32 count) argument [all...] |
/haiku/src/bin/debug/profile/ |
H A D | Team.cpp | 110 Team::InitThread(Thread* thread) argument 112 // The thread 113 thread->SetLazyImages(!_SynchronousProfiling()); 118 thread->ID()); 124 "%s: Failed to create sample area for thread %" B_PRId32 ": " 125 "%s\n", kCommandName, thread->ID(), strerror(sampleArea)); 129 thread->SetSampleArea(sampleArea, (addr_t*)samples); 131 // add the current images to the thread 134 status_t error = thread->AddImage(fImages.ItemAt(i)); 140 // set thread debuggin 189 RemoveThread(Thread* thread) argument [all...] |
/haiku/src/apps/debugger/user_interface/gui/team_window/ |
H A D | ThreadListView.cpp | 52 for (int32 i = 0; Thread* thread = fThreads.ItemAt(i); i++) 53 thread->ReleaseReference(); 109 Thread* thread = fThreads.ItemAt(rowIndex); local 110 if (thread == NULL) 115 value.SetTo(thread->ID()); 120 thread->State(), thread->StoppedReason()); 125 value.SetTo(thread->Name(), B_VARIANT_DONT_COPY_DATA); 129 if (thread->State() != THREAD_STATE_RUNNING) { 130 value.SetTo(thread 144 Thread* thread = fThreads.ItemAt(rowIndex); local 251 SetThread(Thread* thread) argument [all...] |
/haiku/src/system/kernel/arch/riscv64/ |
H A D | arch_thread.cpp | 10 #include <arch/thread.h> 14 #include <thread.h> 44 arch_thread_init_thread_struct(Thread *thread) argument 51 arch_thread_init_kthread_stack(Thread* thread, void* _stack, void* _stackTop, argument 54 memset(&thread->arch_info.context, 0, sizeof(arch_context)); 55 thread->arch_info.context.sp = (addr_t)_stackTop; 56 thread->arch_info.context.s[0] = 0; // fp 57 thread->arch_info.context.s[1] = (addr_t)function; 58 thread->arch_info.context.s[2] = (addr_t)data; 59 thread 66 arch_thread_init_tls(Thread *thread) argument 107 arch_thread_enter_userspace(Thread *thread, addr_t entry, void *arg1, void *arg2) argument 147 arch_on_signal_stack(Thread *thread) argument 162 get_signal_stack(Thread* thread, struct iframe* frame, struct sigaction* action, size_t spaceNeeded) argument 182 arch_setup_signal_frame(Thread *thread, struct sigaction *sa, struct signal_frame_data *signalFrameData) argument [all...] |
/haiku/src/system/kernel/arch/x86/32/ |
H A D | thread.cpp | 10 #include <arch/thread.h> 23 #include <thread.h> 87 Thread* thread = thread_get_current_thread(); local 89 atomic_and(&thread->flags, ~THREAD_FLAGS_RESTART_SYSCALL); 90 atomic_or(&thread->flags, THREAD_FLAGS_SYSCALL_RESTARTED); 103 x86_set_tls_context(Thread *thread) argument 107 thread->user_local_storage); 125 get_signal_stack(Thread* thread, struct iframe* frame, struct sigaction* action, argument 129 if (thread->signal_stack_enabled 131 && (frame->user_sp < thread 163 arch_thread_init_thread_struct(Thread *thread) argument 180 arch_thread_init_kthread_stack(Thread* thread, void* _stack, void* _stackTop, void (*function)(void*), const void* data) argument 222 arch_thread_enter_userspace(Thread* thread, addr_t entry, void* args1, void* args2) argument 293 arch_setup_signal_frame(Thread* thread, struct sigaction* action, struct signal_frame_data* signalFrameData) argument 402 Thread* thread = thread_get_current_thread(); local [all...] |
/haiku/src/add-ons/kernel/debugger/run_on_exit/ |
H A D | run_on_exit.cpp | 36 thread_id thread = load_image(argCount, args, NULL); local 37 if (thread >= B_OK) 38 resume_thread(thread); 101 thread_id thread = spawn_kernel_thread(&run_on_exit_loop, 103 if (thread < B_OK) 104 return thread; 106 resume_thread(thread); 116 // deleting the sem will also cause the thread to exit
|
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | Lockable.cpp | 67 thread_id thread = find_thread(NULL); local 68 if (fLockOwner >= 0 && fLockOwner != thread) 70 fLockOwner = thread; 79 thread_id thread = find_thread(NULL); local 80 if (fLockOwner != thread)
|
/haiku/src/tests/add-ons/kernel/file_systems/bfs/bufferPool/ |
H A D | main.cpp | 44 thread_id thread[NUM_THREADS]; local 48 thread[i] = spawn_thread(allocator, "", B_NORMAL_PRIORITY, (void *)&pool); 49 if (thread[i] < B_OK) 50 fprintf(stderr, "Couldn't spawn thread %d\n", i); 51 resume_thread(thread[i]); 56 wait_for_thread(thread[i], &status);
|
/haiku/src/apps/cortex/support/ |
H A D | BasicThread.h | 81 thread_id thread() const { return m_thread; } function in class:BasicThread 108 thread_id thread = m_thread; // +++++ is this safe? 109 if(thread <= 0) 117 while(wait_for_thread(thread, &ret) == B_INTERRUPTED) { 118 PRINT(("stopping thread %" B_PRId32 ": B_INTERRUPTED\n", 119 thread));
|