| 602 | } |
| 603 | |
| 604 | struct thread * |
| 605 | kdb_thr_first(void) |
| 606 | { |
| 607 | struct proc *p; |
| 608 | struct thread *thr; |
| 609 | u_int i; |
| 610 | |
| 611 | for (i = 0; i <= pidhash; i++) { |
| 612 | LIST_FOREACH(p, &pidhashtbl[i], p_hash) { |
| 613 | thr = FIRST_THREAD_IN_PROC(p); |
| 614 | if (thr != NULL) |
| 615 | return (thr); |
| 616 | } |
| 617 | } |
| 618 | return (NULL); |
| 619 | } |
| 620 | |
| 621 | struct thread * |
| 622 | kdb_thr_from_pid(pid_t pid) |
no outgoing calls
no test coverage detected