/* Get typed element from list at a given position. */
#define cds_list_entry(ptr, type, member) \
((type *) ((char *) (ptr) - (unsigned long) (&((type *) 0)->member)))
/* Get first entry from a list. */
/* Get typed element from list at a given position. */
#define cds_list_entry(ptr, type, member) \
((type *) ((char *) (ptr) - (unsigned long) (&((type *) 0)->member)))
/* Get first entry from a list. */