Lines Matching defs:head
251 * one to the head of the list and the other to the tail of the list.
255 * at the head of the list, or at the tail of the list.
280 struct type *head;\
285 struct cdll_header *head;
313 (header)->head = (void *)(header);\
329 * for (elm = header->head; elm != (void *)header; elm = elm->field.next)
333 * insert <elm> at head of list anchored at <header>
340 (elm)->field.next = (header)->head;\
345 (header)->head->field.prev = (elm);\
346 (header)->head = (elm);\
359 if ((header)->head == (void *)(header))\
360 (header)->head = (elm);\
396 (header)->head = (elm);\
415 (header)->head = (elm)->field.next;\
428 (elm)->field.next = (header)->head;\
430 (header)->head->field.prev = (elm);\
431 (header)->head = (elm);\
440 (header)->head = (elm)->field.next;\
458 * single head doubly-linked list
460 * A list is headed by a single head pointer.
463 * New elements can be added to the list at the head of the list, or
479 struct type *head;\
488 #define LIST_INIT(header) { (header)->head = NULL; }
502 * for (elm = header->head; elm; elm = elm->field.next)
506 if (((elm)->field.next = (header)->head) != NULL)\
507 (header)->head->field.prev = &(elm)->field.next;\
508 (header)->head = (elm);\
509 (elm)->field.prev = &(header)->head;\