Lines Matching refs:kt
79 struct kthr *kt;
94 kt = malloc(sizeof(*kt));
95 kt->next = first;
96 kt->kaddr = addr;
98 kt->pcb = dumppcb;
101 kt->pcb = kgdb_trgt_core_pcb(td.td_oncpu);
103 kt->pcb = (uintptr_t)td.td_pcb;
104 kt->kstack = td.td_kstack;
105 kt->tid = td.td_tid;
106 kt->pid = p.p_pid;
107 kt->paddr = paddr;
108 kt->cpu = td.td_oncpu;
109 first = kt;
120 struct kthr *kt;
125 kt = first;
126 first = kt->next;
127 free(kt);
167 struct kthr *kt;
169 kt = first;
170 while (kt != NULL && kt->tid != tid)
171 kt = kt->next;
172 return (kt);
178 struct kthr *kt;
180 kt = first;
181 while (kt != NULL && kt->kaddr != taddr)
182 kt = kt->next;
183 return (kt);
189 struct kthr *kt;
191 kt = first;
192 while (kt != NULL && kt->pid != pid)
193 kt = kt->next;
194 return (kt);
200 struct kthr *kt;
202 kt = first;
203 while (kt != NULL && kt->paddr != paddr)
204 kt = kt->next;
205 return (kt);
209 kgdb_thr_next(struct kthr *kt)
211 return (kt->next);
215 kgdb_thr_select(struct kthr *kt)
220 curkthr = kt;
229 struct kthr *kt;
234 kt = kgdb_thr_lookup_tid(tid);
235 if (kt == NULL)
237 snprintf(buf, sizeof(buf), "PID=%d", kt->pid);
238 p = (struct proc *)kt->paddr;
244 t = (struct thread *)kt->kaddr;