Go to the documentation of this file.
20 #include <linux/slab.h>
23 int (*map_op)(
void *,
struct imapper *),
void *
data)
26 struct imapper *pre_ent, *pos_ent;
30 if (list_empty(head)) {
33 list_add(&entry->
list, head);
63 map_op(data, pre_ent);
69 int (*map_op)(
void *,
struct imapper *),
void *
data)
72 struct imapper *pre_ent, *next_ent;
80 next = (entry->
list.next == head) ? head->
next : entry->
list.next;
82 if (pre == &entry->
list) {
94 map_op(data, pre_ent);
105 while (!list_empty(head)) {