#define SH_LIST_INSERT_HEAD ( head,
elm,
field,
type   ) 

Value:

do {            \
        if ((head)->slh_first != -1) {                                  \
                (elm)->field.sle_next =                         \
                    (head)->slh_first - SH_PTR_TO_OFF(head, elm);       \
                SH_LIST_FIRSTP(head, type)->field.sle_prev =            \
                        SH_LIST_NEXT_TO_PREV(elm, field);               \
        } else                                                          \
                (elm)->field.sle_next = -1;                             \
        (head)->slh_first = SH_PTR_TO_OFF(head, elm);                   \
        (elm)->field.sle_prev = SH_PTR_TO_OFF(elm, &(head)->slh_first); \
} while (0)

Definition at line 95 of file shqueue.h.

Referenced by __db_des_get(), __lock_get_internal(), CDB___db_shalloc_free(), CDB___db_shalloc_init(), CDB___lock_addfamilylocker(), and CDB_lock_vec().


Generated on Sun Jun 8 10:56:56 2008 for GNUmifluz by  doxygen 1.5.5