With the following declaration: <code>struct KThreadLinkedList { KThread *prev, *next; };</code>.
+
With the following declarations: <code>struct KThreadLinkedList { KThread *first, *last; };</code> and <code>struct KThreadLinkedListNode { KThread *prev, *next; };</code>.