Lines Matching refs:id

138 		return Notify(eventCode, thread->id, thread->team->id, thread);
201 id = threadID >= 0 ? threadID : allocate_thread_id();
206 snprintf(lockName, sizeof(lockName), "Thread:%" B_PRId32, id);
286 Thread::Get(thread_id id)
289 Thread* thread = sThreadHash.Lookup(id);
297 Thread::GetAndLock(thread_id id)
301 Thread* thread = sThreadHash.Lookup(id);
312 if (sThreadHash.Lookup(id) == thread)
325 Thread::GetDebug(thread_id id)
327 return sThreadHash.Lookup(id, false);
332 Thread::IsAlive(thread_id id)
335 return sThreadHash.Lookup(id) != NULL;
368 snprintf(temp, sizeof(temp), "thread_%" B_PRId32 "_retcode_sem", id);
398 return sThreadHash.Lookup(id) != NULL;
530 this->team = team >= 0 ? team : team_get_kernel_team()->id;
576 team = currentThread->team->id;
641 ")\n", thread->name, thread->id);
808 stackSize = thread->id == team->id
822 thread->name, thread->id);
825 if (thread->id == team->id) {
841 stackArea = create_area_etc(team->id, nameBuffer,
925 thread->name, thread->id);
1063 return thread->id;
1140 info->thread = thread->id;
1141 info->team = thread->team->id;
1184 send_data_etc(thread_id id, int32 code, const void *buffer, size_t bufferSize,
1188 Thread *target = Thread::Get(id);
1233 target->msg.sender = thread_get_current_thread()->id;
1404 int32 id = -1;
1412 id = strtoul(argv[1], NULL, 0);
1416 if (id != -1 && thread->id != id)
1421 kprintf("thread %" B_PRId32 " made unreal\n", thread->id);
1432 int32 id;
1447 id = strtoul(argv[2], NULL, 0);
1449 id = thread_get_current_thread()->id;
1454 if (thread->id != id)
1457 kprintf("thread %" B_PRId32 " set to priority %" B_PRId32 "\n", id, prio);
1462 kprintf("thread %" B_PRId32 " (%#" B_PRIx32 ") not found\n", id, id);
1471 int32 id;
1479 id = thread_get_current_thread()->id;
1481 id = strtoul(argv[1], NULL, 0);
1486 if (thread->id != id)
1490 kprintf("thread %" B_PRId32 " suspended\n", id);
1495 kprintf("thread %" B_PRId32 " (%#" B_PRIx32 ") not found\n", id, id);
1504 int32 id;
1511 // force user to enter a thread id, as using
1513 id = strtoul(argv[1], NULL, 0);
1518 if (thread->id != id)
1523 kprintf("thread %" B_PRId32 " resumed\n", thread->id);
1529 kprintf("thread %" B_PRId32 " (%#" B_PRIx32 ") not found\n", id, id);
1539 int32 id;
1547 id = thread_get_current_thread()->id;
1549 id = strtoul(argv[1], NULL, 0);
1551 err = _user_debug_thread(id);
1557 kprintf("thread %" B_PRId32 " dropped into user debugger\n", id);
1611 kprintf("%-*s id state wait for %-*s cpu pri %-*s team "
1622 kprintf("%p %6" B_PRId32 " %-10s", thread, thread->id,
1678 (void *)thread->kernel_stack_base, thread->team->id,
1689 kprintf("id: %" B_PRId32 " (%#" B_PRIx32 ")\n", thread->id,
1690 thread->id);
1810 // walk through the thread list, trying to match name or id
1814 if (!strcmp(name, thread->name) || thread->id == (thread_id)arg) {
1881 || (team > 0 && thread->team->id != team)
1903 team_id teamID = team->id;
1906 thread->id, thread->exit.status));
2063 Signal childSignal(SIGCHLD, team->exit.reason, B_OK, team->id);
2078 Signal groupSignal(SIGHUP, SI_USER, B_OK, team->id);
2087 threadDeathEntry->thread = thread->id;
2112 thread->id));
2220 if (teamID != kernelTeam->id)
2221 user_debug_thread_deleted(teamID, thread->id);
2249 TRACE(("thread_at_kernel_entry: entry thread %" B_PRId32 "\n", thread->id));
2272 TRACE(("thread_at_kernel_exit: exit thread %" B_PRId32 "\n", thread->id));
2297 thread->id));
2377 thread_dequeue_id(struct thread_queue *q, thread_id id)
2384 if (thread->id == id) {
2407 thread_id id;
2409 id = sNextThreadID++;
2416 } while (sThreadHash.Lookup(id, false) != NULL);
2418 return id;
2481 wait_for_thread_etc(thread_id id, uint32 flags, bigtime_t timeout,
2484 if (id < 0)
2492 Thread* thread = Thread::GetAndLock(id);
2513 = team_get_death_entry(team, id, &deleteEntry);
2523 if (threadDeathEntry->thread == id) {
2545 resume_thread(id);
2552 panic("could acquire exit_sem for thread %" B_PRId32 "\n", id);
2559 thread = Thread::GetAndLock(id);
2581 select_thread(int32 id, struct select_info* info, bool kernel)
2584 Thread* thread = Thread::GetAndLock(id);
2607 deselect_thread(int32 id, struct select_info* info, bool kernel)
2610 Thread* thread = Thread::GetAndLock(id);
2661 thread_get_io_priority(thread_id id)
2663 Thread* thread = Thread::GetAndLock(id);
2786 "[ -s ] ( <id> | <address> | <name> )*\n"
2790 " <id> - The ID of the thread.\n"
2798 "[ <id> ]\n"
2801 " <id> - The ID of the thread.\n", 0);
2804 "[ <id> ]\n"
2807 " <id> - The ID of the thread.\n", 0);
2809 "<id>\n"
2811 " <id> - The ID of the thread.\n", 0);
2814 "<id>\n"
2817 " <id> - The ID of the thread.\n", 0);
2820 "<priority> [ <id> ]\n"
2824 " <id> - The ID of the thread.\n", 0);
3012 Signal signal(SIGKILLTHR, SI_USER, B_OK, team->id);
3020 kill_thread(thread_id id)
3022 if (id <= 0)
3027 Signal signal(SIGKILLTHR, SI_USER, B_OK, currentThread->team->id);
3028 return send_signal_to_thread_id(id, signal, 0);
3061 _get_thread_info(thread_id id, thread_info *info, size_t size)
3063 if (info == NULL || size != sizeof(thread_info) || id < B_OK)
3067 Thread* thread = Thread::GetAndLock(id);
3110 if (next->id <= lastID)
3120 lastID = thread->id;
3149 return thread->id;
3157 rename_thread(thread_id id, const char* name)
3163 Thread* thread = Thread::GetAndLock(id);
3175 team_id teamID = thread->team->id;
3180 sNotificationService.Notify(THREAD_NAME_CHANGED, teamID, id);
3188 set_thread_priority(thread_id id, int32 priority)
3199 Thread* thread = Thread::GetAndLock(id);
3258 suspend_thread(thread_id id)
3260 if (id <= 0)
3265 Signal signal(SIGSTOP, SI_USER, B_OK, currentThread->team->id);
3266 return send_signal_to_thread_id(id, signal, 0);
3271 resume_thread(thread_id id)
3273 if (id <= 0)
3282 currentThread->team->id);
3283 return send_signal_to_thread_id(id, signal, 0);
3518 _user_get_thread_info(thread_id id, thread_info *userInfo)
3526 status = _get_thread_info(id, &info, sizeof(thread_info));
3577 _user_wait_for_thread(thread_id id, status_t *userReturnCode)
3585 status = wait_for_thread_etc(id, B_CAN_INTERRUPT, 0, &returnCode);