Lines Matching refs:head
154 static void mc_node_add(mc_dlist_t *node, mc_dlist_t **head, mc_dlist_t **tail);
155 static void mc_node_del(mc_dlist_t *node, mc_dlist_t **head, mc_dlist_t **tail);
156 static mc_dlist_t *mc_node_get(int id, mc_dlist_t *head);
1866 /* node is at the head of list */
1933 * Input: The pointer of node to be added, head and tail of the list
1937 mc_node_add(mc_dlist_t *node, mc_dlist_t **head, mc_dlist_t **tail)
1939 DPRINTF(MC_LIST_DEBUG, ("mc_node_add: node->id %d head %p tail %p\n",
1940 node->id, (void *)*head, (void *)*tail));
1942 if (*head != NULL) {
1949 *head = *tail = node;
1954 * Input: The pointer of node to be deleted, head and tail of the list
1958 * 2. At the head of the list
1959 * 3. At the head and tail of the list, i.e. only one left.
1964 mc_node_del(mc_dlist_t *node, mc_dlist_t **head, mc_dlist_t **tail)
1974 /* deleted node is at the head of list */
1975 *head = node->next;
1982 * Search the list from the head of the list to match the given id
1983 * Input: id and the head of the list
1987 mc_node_get(int id, mc_dlist_t *head)
1991 node = head;