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 | ||||
Context not available. | |||||
WRITE_ONCE(prev->next, next); | WRITE_ONCE(prev->next, next); | ||||
} | } | ||||
static inline void | |||||
__list_del_entry(struct list_head *entry) | |||||
{ | |||||
// if (!__list_del_entry_valid(entry)) | |||||
hselasky: If there is a check for list_del_entry_valid() in Linux and it is there always, we need the… | |||||
johalun0_gmail.comAuthorUnsubmitted 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… | |||||
// return; | |||||
__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) | |||||
hselaskyUnsubmitted Done Inline Actions(pos)->member.next hselasky: (pos)->member.next | |||||
static inline void | static inline void | ||||
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.