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;
4406 sprintf(name, "idle thread %" B_PRIu32 " kstack", i + 1);
4474 "[ \"-r\" | \"-p\" ] <address> [ <thread ID> ]\n"
4478 "team, respectively the team specified by thread ID <thread ID>. If\n"
4481 "specified by thread ID <thread ID>. If \"-p\" is specified,\n"
4538 Thread* thread = thread_get_current_thread();
4539 if (thread != NULL)
4540 atomic_add(&thread->page_faults_allowed, 1);
4547 Thread* thread = thread_get_current_thread();
4548 if (thread != NULL)
4549 atomic_add(&thread->page_faults_allowed, -1);
4575 dprintf("vm_page_fault: kernel thread accessing invalid user "
4583 panic("vm_page_fault: non kernel thread accessing user memory "
4590 // this keeps a user space thread from passing a buffer that crosses
4604 "0x%lx, ip 0x%lx, write %d, user %d, exec %d, thread 0x%" B_PRIx32 "\n",
4608 Thread* thread = thread_get_current_thread();
4609 if (thread != NULL && thread->fault_handler != 0) {
4613 *newIP = reinterpret_cast<uintptr_t>(thread->fault_handler);
4620 Thread* thread = thread_get_current_thread();
4629 dprintf("vm_page_fault: thread \"%s\" (%" B_PRId32 ") in team "
4631 "(\"%s\" +%#lx)\n", thread->name, thread->id,
4632 thread->team->Name(), thread->team->id,
4641 // If the thread has a signal handler for SIGSEGV, we simply
4653 EFAULT, thread->team->id);
4655 send_signal_to_thread(thread, signal, 0);
5534 is passed, the address space of the thread returned by
5552 // get the address space for the debugged thread
5557 Thread* thread = debug_get_debugged_thread();
5558 if (thread == NULL || thread->team == NULL)
5561 addressSpace = thread->team->address_space;