tl 70 kern/include/threadlist.h void threadlist_init(struct threadlist *tl); tl 71 kern/include/threadlist.h void threadlist_cleanup(struct threadlist *tl); tl 74 kern/include/threadlist.h bool threadlist_isempty(struct threadlist *tl); tl 77 kern/include/threadlist.h void threadlist_addhead(struct threadlist *tl, struct thread *t); tl 78 kern/include/threadlist.h void threadlist_addtail(struct threadlist *tl, struct thread *t); tl 79 kern/include/threadlist.h struct thread *threadlist_remhead(struct threadlist *tl); tl 80 kern/include/threadlist.h struct thread *threadlist_remtail(struct threadlist *tl); tl 83 kern/include/threadlist.h void threadlist_insertafter(struct threadlist *tl, tl 85 kern/include/threadlist.h void threadlist_insertbefore(struct threadlist *tl, tl 87 kern/include/threadlist.h void threadlist_remove(struct threadlist *tl, struct thread *t); tl 90 kern/include/threadlist.h #define THREADLIST_FORALL(itervar, tl) \ tl 91 kern/include/threadlist.h for ((itervar) = (tl).tl_head.tln_next->tln_self; \ tl 95 kern/include/threadlist.h #define THREADLIST_FORALL_REV(itervar, tl) \ tl 96 kern/include/threadlist.h for ((itervar) = (tl).tl_tail.tln_prev->tln_self; \ tl 61 kern/thread/threadlist.c threadlist_init(struct threadlist *tl) tl 63 kern/thread/threadlist.c DEBUGASSERT(tl != NULL); tl 65 kern/thread/threadlist.c tl->tl_head.tln_next = &tl->tl_tail; tl 66 kern/thread/threadlist.c tl->tl_head.tln_prev = NULL; tl 67 kern/thread/threadlist.c tl->tl_tail.tln_next = NULL; tl 68 kern/thread/threadlist.c tl->tl_tail.tln_prev = &tl->tl_head; tl 69 kern/thread/threadlist.c tl->tl_head.tln_self = NULL; tl 70 kern/thread/threadlist.c tl->tl_tail.tln_self = NULL; tl 71 kern/thread/threadlist.c tl->tl_count = 0; tl 75 kern/thread/threadlist.c threadlist_cleanup(struct threadlist *tl) tl 77 kern/thread/threadlist.c DEBUGASSERT(tl != NULL); tl 78 kern/thread/threadlist.c DEBUGASSERT(tl->tl_head.tln_next == &tl->tl_tail); tl 79 kern/thread/threadlist.c DEBUGASSERT(tl->tl_head.tln_prev == NULL); tl 80 kern/thread/threadlist.c DEBUGASSERT(tl->tl_tail.tln_next == NULL); tl 81 kern/thread/threadlist.c DEBUGASSERT(tl->tl_tail.tln_prev == &tl->tl_head); tl 82 kern/thread/threadlist.c DEBUGASSERT(tl->tl_head.tln_self == NULL); tl 83 kern/thread/threadlist.c DEBUGASSERT(tl->tl_tail.tln_self == NULL); tl 85 kern/thread/threadlist.c KASSERT(threadlist_isempty(tl)); tl 86 kern/thread/threadlist.c KASSERT(tl->tl_count == 0); tl 92 kern/thread/threadlist.c threadlist_isempty(struct threadlist *tl) tl 94 kern/thread/threadlist.c DEBUGASSERT(tl != NULL); tl 96 kern/thread/threadlist.c return (tl->tl_count == 0); tl 163 kern/thread/threadlist.c threadlist_addhead(struct threadlist *tl, struct thread *t) tl 165 kern/thread/threadlist.c DEBUGASSERT(tl != NULL); tl 168 kern/thread/threadlist.c threadlist_insertafternode(&tl->tl_head, t); tl 169 kern/thread/threadlist.c tl->tl_count++; tl 173 kern/thread/threadlist.c threadlist_addtail(struct threadlist *tl, struct thread *t) tl 175 kern/thread/threadlist.c DEBUGASSERT(tl != NULL); tl 178 kern/thread/threadlist.c threadlist_insertbeforenode(t, &tl->tl_tail); tl 179 kern/thread/threadlist.c tl->tl_count++; tl 183 kern/thread/threadlist.c threadlist_remhead(struct threadlist *tl) tl 187 kern/thread/threadlist.c DEBUGASSERT(tl != NULL); tl 189 kern/thread/threadlist.c tln = tl->tl_head.tln_next; tl 195 kern/thread/threadlist.c DEBUGASSERT(tl->tl_count > 0); tl 196 kern/thread/threadlist.c tl->tl_count--; tl 201 kern/thread/threadlist.c threadlist_remtail(struct threadlist *tl) tl 205 kern/thread/threadlist.c DEBUGASSERT(tl != NULL); tl 207 kern/thread/threadlist.c tln = tl->tl_tail.tln_prev; tl 213 kern/thread/threadlist.c DEBUGASSERT(tl->tl_count > 0); tl 214 kern/thread/threadlist.c tl->tl_count--; tl 219 kern/thread/threadlist.c threadlist_insertafter(struct threadlist *tl, tl 223 kern/thread/threadlist.c tl->tl_count++; tl 227 kern/thread/threadlist.c threadlist_insertbefore(struct threadlist *tl, tl 231 kern/thread/threadlist.c tl->tl_count++; tl 235 kern/thread/threadlist.c threadlist_remove(struct threadlist *tl, struct thread *t) tl 238 kern/thread/threadlist.c DEBUGASSERT(tl->tl_count > 0); tl 239 kern/thread/threadlist.c tl->tl_count--;