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

Go to the source code of this file.

Data Structures

struct  sym_quehead
 

Macros

#define sym_que_init(ptr)
 
#define sym_que_entry(ptr, type, member)   container_of(ptr, type, member)
 
#define sym_insque(new, pos)   __sym_que_add(new, pos, (pos)->flink)
 
#define sym_remque(el)   __sym_que_del((el)->blink, (el)->flink)
 
#define sym_insque_head(new, head)   __sym_que_add(new, head, (head)->flink)
 
#define sym_insque_tail(new, head)   __sym_que_add(new, (head)->blink, head)
 
#define FOR_EACH_QUEUED_ELEMENT(head, qp)   for (qp = (head)->flink; qp != (head); qp = qp->flink)
 
#define sym_qptr(p)   ((struct sym_quehead *) (p))
 
#define sym_set_bit(p, n)   (((u32 *)(p))[(n)>>5] |= (1<<((n)&0x1f)))
 
#define sym_clr_bit(p, n)   (((u32 *)(p))[(n)>>5] &= ~(1<<((n)&0x1f)))
 
#define sym_is_bit(p, n)   (((u32 *)(p))[(n)>>5] & (1<<((n)&0x1f)))
 
#define _U_(a, m)   (a)<=(1<<m)?m:
 
#define _LGRU16_(a)
 

Typedefs

typedef struct sym_quehead SYM_QUEHEAD
 

Macro Definition Documentation

#define _LGRU16_ (   a)
Value:
( \
_U_(a, 0)_U_(a, 1)_U_(a, 2)_U_(a, 3)_U_(a, 4)_U_(a, 5)_U_(a, 6)_U_(a, 7) \
_U_(a, 8)_U_(a, 9)_U_(a,10)_U_(a,11)_U_(a,12)_U_(a,13)_U_(a,14)_U_(a,15) \
16)

Definition at line 184 of file sym_misc.h.

#define _U_ (   a,
  m 
)    (a)<=(1<<m)?m:

Definition at line 179 of file sym_misc.h.

#define FOR_EACH_QUEUED_ELEMENT (   head,
  qp 
)    for (qp = (head)->flink; qp != (head); qp = qp->flink)

Definition at line 159 of file sym_misc.h.

#define sym_clr_bit (   p,
  n 
)    (((u32 *)(p))[(n)>>5] &= ~(1<<((n)&0x1f)))

Definition at line 171 of file sym_misc.h.

#define sym_insque (   new,
  pos 
)    __sym_que_add(new, pos, (pos)->flink)

Definition at line 126 of file sym_misc.h.

#define sym_insque_head (   new,
  head 
)    __sym_que_add(new, head, (head)->flink)

Definition at line 130 of file sym_misc.h.

#define sym_insque_tail (   new,
  head 
)    __sym_que_add(new, (head)->blink, head)

Definition at line 143 of file sym_misc.h.

#define sym_is_bit (   p,
  n 
)    (((u32 *)(p))[(n)>>5] & (1<<((n)&0x1f)))

Definition at line 172 of file sym_misc.h.

#define sym_qptr (   p)    ((struct sym_quehead *) (p))

Definition at line 165 of file sym_misc.h.

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

Definition at line 124 of file sym_misc.h.

#define sym_que_init (   ptr)
Value:
do { \
(ptr)->flink = (ptr); (ptr)->blink = (ptr); \
} while (0)

Definition at line 51 of file sym_misc.h.

#define sym_remque (   el)    __sym_que_del((el)->blink, (el)->flink)

Definition at line 128 of file sym_misc.h.

#define sym_set_bit (   p,
  n 
)    (((u32 *)(p))[(n)>>5] |= (1<<((n)&0x1f)))

Definition at line 170 of file sym_misc.h.

Typedef Documentation