Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
list_nulls.h File Reference

Go to the source code of this file.

Data Structures

struct  hlist_nulls_head
 
struct  hlist_nulls_node
 

Macros

#define INIT_HLIST_NULLS_HEAD(ptr, nulls)   ((ptr)->first = (struct hlist_nulls_node *) (1UL | (((long)nulls) << 1)))
 
#define hlist_nulls_entry(ptr, type, member)   container_of(ptr,type,member)
 
#define hlist_nulls_for_each_entry(tpos, pos, head, member)
 
#define hlist_nulls_for_each_entry_from(tpos, pos, member)
 

Macro Definition Documentation

#define hlist_nulls_entry (   ptr,
  type,
  member 
)    container_of(ptr,type,member)

Definition at line 27 of file list_nulls.h.

#define hlist_nulls_for_each_entry (   tpos,
  pos,
  head,
  member 
)
Value:
for (pos = (head)->first; \
(!is_a_nulls(pos)) && \
({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \
pos = pos->next)

hlist_nulls_for_each_entry - iterate over list of given type : the type * to use as a loop cursor. : the &struct hlist_node to use as a loop cursor. : the head for your list. : the name of the hlist_node within the struct.

Definition at line 94 of file list_nulls.h.

#define hlist_nulls_for_each_entry_from (   tpos,
  pos,
  member 
)
Value:
for (; (!is_a_nulls(pos)) && \
({ tpos = hlist_nulls_entry(pos, typeof(*tpos), member); 1;}); \
pos = pos->next)

hlist_nulls_for_each_entry_from - iterate over a hlist continuing from current point : the type * to use as a loop cursor. : the &struct hlist_node to use as a loop cursor. : the name of the hlist_node within the struct.

Definition at line 107 of file list_nulls.h.

#define INIT_HLIST_NULLS_HEAD (   ptr,
  nulls 
)    ((ptr)->first = (struct hlist_nulls_node *) (1UL | (((long)nulls) << 1)))

Definition at line 24 of file list_nulls.h.