Lines Matching refs:klist_node
47 static struct klist *knode_klist(struct klist_node *knode) in knode_klist()
53 static bool knode_dead(struct klist_node *knode) in knode_dead()
58 static void knode_set_klist(struct klist_node *knode, struct klist *klist) in knode_set_klist()
65 static void knode_kill(struct klist_node *knode) in knode_kill()
84 void klist_init(struct klist *k, void (*get)(struct klist_node *), in klist_init() argument
85 void (*put)(struct klist_node *)) in klist_init() argument
94 static void add_head(struct klist *k, struct klist_node *n) in add_head()
101 static void add_tail(struct klist *k, struct klist_node *n) in add_tail()
108 static void klist_node_init(struct klist *k, struct klist_node *n) in klist_node_init()
122 void klist_add_head(struct klist_node *n, struct klist *k) in klist_add_head()
134 void klist_add_tail(struct klist_node *n, struct klist *k) in klist_add_tail()
146 void klist_add_behind(struct klist_node *n, struct klist_node *pos) in klist_add_behind()
162 void klist_add_before(struct klist_node *n, struct klist_node *pos) in klist_add_before()
175 struct klist_node *node;
186 struct klist_node *n = container_of(kref, struct klist_node, n_ref); in klist_release()
204 static int klist_dec_and_del(struct klist_node *n) in klist_dec_and_del()
209 static void klist_put(struct klist_node *n, bool kill) in klist_put()
212 void (*put)(struct klist_node *) = k->put; in klist_put()
228 void klist_del(struct klist_node *n) in klist_del()
238 void klist_remove(struct klist_node *n) in klist_remove()
265 int klist_node_attached(struct klist_node *n) in klist_node_attached()
281 struct klist_node *n) in klist_iter_init_node()
320 static struct klist_node *to_klist_node(struct list_head *n) in to_klist_node()
322 return container_of(n, struct klist_node, n_node); in to_klist_node()
333 struct klist_node *klist_prev(struct klist_iter *i) in klist_prev()
335 void (*put)(struct klist_node *) = i->i_klist->put; in klist_prev()
336 struct klist_node *last = i->i_cur; in klist_prev()
337 struct klist_node *prev; in klist_prev()
375 struct klist_node *klist_next(struct klist_iter *i) in klist_next()
377 void (*put)(struct klist_node *) = i->i_klist->put; in klist_next()
378 struct klist_node *last = i->i_cur; in klist_next()
379 struct klist_node *next; in klist_next()