Lines Matching defs:thread

46 #include <thread.h>
3794 // We need at least one argument, the address. Optionally a thread ID can be
3811 Thread* thread = Thread::GetDebug(threadID);
3812 if (thread == NULL) {
3813 kprintf("Invalid thread/team ID \"%s\"\n", argv[argi - 1]);
3817 team = thread->team;
3891 Thread* thread = debug_get_debugged_thread();
3892 if (thread == NULL || thread->team == NULL) {
3897 addressSpace = thread->team->address_space;
4398 sprintf(name, "idle thread %" B_PRIu32 " kstack", i + 1);
4466 "[ \"-r\" | \"-p\" ] <address> [ <thread ID> ]\n"
4470 "team, respectively the team specified by thread ID <thread ID>. If\n"
4473 "specified by thread ID <thread ID>. If \"-p\" is specified,\n"
4530 Thread* thread = thread_get_current_thread();
4531 if (thread != NULL)
4532 atomic_add(&thread->page_faults_allowed, 1);
4539 Thread* thread = thread_get_current_thread();
4540 if (thread != NULL)
4541 atomic_add(&thread->page_faults_allowed, -1);
4567 dprintf("vm_page_fault: kernel thread accessing invalid user "
4575 panic("vm_page_fault: non kernel thread accessing user memory "
4582 // this keeps a user space thread from passing a buffer that crosses
4596 "0x%lx, ip 0x%lx, write %d, user %d, exec %d, thread 0x%" B_PRIx32 "\n",
4600 Thread* thread = thread_get_current_thread();
4601 if (thread != NULL && thread->fault_handler != 0) {
4605 *newIP = reinterpret_cast<uintptr_t>(thread->fault_handler);
4612 Thread* thread = thread_get_current_thread();
4621 dprintf("vm_page_fault: thread \"%s\" (%" B_PRId32 ") in team "
4623 "(\"%s\" +%#lx)\n", thread->name, thread->id,
4624 thread->team->Name(), thread->team->id,
4633 // If the thread has a signal handler for SIGSEGV, we simply
4645 EFAULT, thread->team->id);
4647 send_signal_to_thread(thread, signal, 0);
5526 is passed, the address space of the thread returned by
5544 // get the address space for the debugged thread
5549 Thread* thread = debug_get_debugged_thread();
5550 if (thread == NULL || thread->team == NULL)
5553 addressSpace = thread->team->address_space;