Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/list.h
Context not available. | |||||
#include <vm/vm_object.h> | #include <vm/vm_object.h> | ||||
#include <vm/pmap.h> | #include <vm/pmap.h> | ||||
#ifdef DDB | |||||
#include <ddb/ddb.h> | |||||
#endif | |||||
#ifndef prefetch | #ifndef prefetch | ||||
#define prefetch(x) | #define prefetch(x) | ||||
#endif | #endif | ||||
#define LINUX_LIST_HEAD_INIT(name) { &(name), &(name) } | #define LINUX_LIST_HEAD_INIT(name) { &(name), &(name) } | ||||
#define LINUX_LIST_HEAD(name) \ | #define LINUX_LIST_HEAD(name) \ | ||||
struct list_head name = LINUX_LIST_HEAD_INIT(name) | struct list_head name = LINUX_LIST_HEAD_INIT(name) | ||||
#ifndef LIST_HEAD_DEF | #ifndef LIST_HEAD_DEF | ||||
Context not available. | |||||
WRITE_ONCE(prev->next, next); | WRITE_ONCE(prev->next, next); | ||||
} | } | ||||
static inline void | |||||
__list_del_entry(struct list_head *entry) | |||||
{ | |||||
hselasky: If there is a check for list_del_entry_valid() in Linux and it is there always, we need the… | |||||
Done Inline ActionsIt actually only does something if CONFIG_DEBUG_LIST is defined, otherwise returns true. We still need it? johalun0_gmail.com: It actually only does something if CONFIG_DEBUG_LIST is defined, otherwise returns true. We… | |||||
__list_del(entry->prev, entry->next); | |||||
} | |||||
static inline void | static inline void | ||||
list_del(struct list_head *entry) | list_del(struct list_head *entry) | ||||
{ | { | ||||
Context not available. | |||||
#define list_for_each_prev(p, h) for (p = (h)->prev; p != (h); p = (p)->prev) | #define list_for_each_prev(p, h) for (p = (h)->prev; p != (h); p = (p)->prev) | ||||
#define list_safe_reset_next(pos, n, member) \ | |||||
n = list_entry((pos)->member.next, typeof(*pos), member) | |||||
static inline void | static inline void | ||||
Done Inline Actions(pos)->member.next hselasky: (pos)->member.next | |||||
list_add(struct list_head *new, struct list_head *head) | list_add(struct list_head *new, struct list_head *head) | ||||
{ | { | ||||
Context not available. |
If there is a check for list_del_entry_valid() in Linux and it is there always, we need the similar piece here.