Lines Matching refs:kmod_list
111 struct kmod_list *kmod_list_append(struct kmod_list *list, const void *data)
113 struct kmod_list *new;
125 struct kmod_list *kmod_list_insert_after(struct kmod_list *list,
128 struct kmod_list *new;
143 struct kmod_list *kmod_list_insert_before(struct kmod_list *list,
146 struct kmod_list *new;
161 struct kmod_list *kmod_list_append_list(struct kmod_list *list1,
162 struct kmod_list *list2)
175 struct kmod_list *kmod_list_prepend(struct kmod_list *list, const void *data)
177 struct kmod_list *new;
189 struct kmod_list *kmod_list_remove(struct kmod_list *list)
202 return container_of(node, struct kmod_list, node);
205 struct kmod_list *kmod_list_remove_data(struct kmod_list *list,
208 struct kmod_list *itr;
225 return container_of(node, struct kmod_list, node);
232 struct kmod_list *kmod_list_remove_n_latest(struct kmod_list *list,
235 struct kmod_list *l = list;
259 KMOD_EXPORT struct kmod_list *kmod_list_prev(const struct kmod_list *list,
260 const struct kmod_list *curr)
268 return container_of(curr->node.prev, struct kmod_list, node);
284 KMOD_EXPORT struct kmod_list *kmod_list_next(const struct kmod_list *list,
285 const struct kmod_list *curr)
293 return container_of(curr->node.next, struct kmod_list, node);
309 KMOD_EXPORT struct kmod_list *kmod_list_last(const struct kmod_list *list)
313 return container_of(list->node.prev, struct kmod_list, node);