VCOM Linux Driver
Advantech Inc.
Loading...
Searching...
No Matches
advlist.h File Reference

Go to the source code of this file.

Data Structures

struct  list_head
 

Macros

#define LIST_HEAD_INIT(name)
 
#define LIST_HEAD(name)
 
#define LIST_POISON1   0
 
#define LIST_POISON2   0
 
#define ENVIRONMENT64
 
#define PTR_OFFSET   (unsigned long long int)
 
#define list_for_each(pos, head)
 
#define list_for_each_safe(pos, n, head)
 
#define adv_offsetof(TYPE, MEMBER)
 
#define container_of(ptr, type, member)
 
#define list_entry(ptr, type, member)
 

Macro Definition Documentation

◆ adv_offsetof

#define adv_offsetof ( TYPE,
MEMBER )
Value:
(PTR_OFFSET &((TYPE *)0)->MEMBER)
#define PTR_OFFSET
Definition advlist.h:81

◆ container_of

#define container_of ( ptr,
type,
member )
Value:
({ \
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - adv_offsetof(type,member) );})
#define adv_offsetof(TYPE, MEMBER)
Definition advlist.h:93
char ptr[4]
Definition vcom_proto.h:2

◆ ENVIRONMENT64

#define ENVIRONMENT64

◆ list_entry

#define list_entry ( ptr,
type,
member )
Value:
container_of(ptr, type, member)
#define container_of(ptr, type, member)
Definition advlist.h:95

◆ list_for_each

#define list_for_each ( pos,
head )
Value:
for (pos = (head)->next; pos != (head); pos = pos->next)

◆ list_for_each_safe

#define list_for_each_safe ( pos,
n,
head )
Value:
for (pos = (head)->next, n = pos->next; pos != (head); \
pos = n, n = pos->next)

◆ LIST_HEAD

#define LIST_HEAD ( name)
Value:
struct list_head name = LIST_HEAD_INIT(name)
#define LIST_HEAD_INIT(name)
Definition advlist.h:8
Definition advlist.h:4

◆ LIST_HEAD_INIT

#define LIST_HEAD_INIT ( name)
Value:
{ &(name), &(name) }

◆ LIST_POISON1

#define LIST_POISON1   0

◆ LIST_POISON2

#define LIST_POISON2   0

◆ PTR_OFFSET

#define PTR_OFFSET   (unsigned long long int)