Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
list_bl.h File Reference
#include <linux/list.h>
#include <linux/bit_spinlock.h>

Go to the source code of this file.

Data Structures

struct  hlist_bl_head
 
struct  hlist_bl_node
 

Macros

#define LIST_BL_LOCKMASK   0UL
 
#define LIST_BL_BUG_ON(x)
 
#define INIT_HLIST_BL_HEAD(ptr)   ((ptr)->first = NULL)
 
#define hlist_bl_entry(ptr, type, member)   container_of(ptr,type,member)
 
#define hlist_bl_for_each_entry(tpos, pos, head, member)
 
#define hlist_bl_for_each_entry_safe(tpos, pos, n, head, member)
 

Macro Definition Documentation

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

Definition at line 49 of file list_bl.h.

#define hlist_bl_for_each_entry (   tpos,
  pos,
  head,
  member 
)
Value:
for (pos = hlist_bl_first(head); \
pos && \
({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1;}); \
pos = pos->next)

hlist_bl_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 136 of file list_bl.h.

#define hlist_bl_for_each_entry_safe (   tpos,
  pos,
  n,
  head,
  member 
)
Value:
for (pos = hlist_bl_first(head); \
pos && ({ n = pos->next; 1; }) && \
({ tpos = hlist_bl_entry(pos, typeof(*tpos), member); 1;}); \
pos = n)

hlist_bl_for_each_entry_safe - iterate over list of given type safe against removal of list entry : the type * to use as a loop cursor. : the &struct hlist_node to use as a loop cursor.
: another &struct hlist_node to use as temporary storage : the head for your list. : the name of the hlist_node within the struct.

Definition at line 150 of file list_bl.h.

#define INIT_HLIST_BL_HEAD (   ptr)    ((ptr)->first = NULL)

Definition at line 40 of file list_bl.h.

#define LIST_BL_BUG_ON (   x)

Definition at line 29 of file list_bl.h.

#define LIST_BL_LOCKMASK   0UL

Definition at line 23 of file list_bl.h.