MCPcopy Create free account
hub / github.com/F-Stack/f-stack / kdb_thr_first

Function kdb_thr_first

freebsd/kern/subr_kdb.c:604–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604struct thread *
605kdb_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
621struct thread *
622kdb_thr_from_pid(pid_t pid)

Callers 4

kdb_thr_lookupFunction · 0.85
db_findstack_cmdFunction · 0.85
db_show_threadsFunction · 0.85
_db_stack_trace_allFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected