Index: projects/vmware_pvscsi/sys/dev/vmware/vmw_pvscsi/fbsd_list.h =================================================================== --- projects/vmware_pvscsi/sys/dev/vmware/vmw_pvscsi/fbsd_list.h (nonexistent) +++ projects/vmware_pvscsi/sys/dev/vmware/vmw_pvscsi/fbsd_list.h (revision 300402) @@ -0,0 +1,28 @@ +/* XXX: use queue(3) instead */ + +#ifndef _FBSD_LIST_H_ +#define _FBSD_LIST_H_ + +#define container_of __containerof + +struct list_head { + struct list_head *next,*last; +}; +#define INIT_LIST_HEAD(a) {(a)->next=(a)->last=(a);} +#define list_entry(p,t,m) container_of(p, t, m) + +#define list_empty(a) ((a)->next==(a)) + +#define list_del(a)\ + {(a)->last->next=(a)->next;\ + (a)->next->last=(a)->last;} + +#define list_del_rcu(a)\ + {atomic_store_rel_ptr(&(a)->last->next, (a)->next);\ + (a)->next->last=(a)->last;} + +#define list_add(a,b)\ + {(a)->last=(b); (a)->next=(b)->next ;\ + (a)->next->last=(a); (b)->next=(a);} + +#endif /* !_FBSD_LIST_H_ */ Property changes on: projects/vmware_pvscsi/sys/dev/vmware/vmw_pvscsi/fbsd_list.h ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property