#include <linux/klist.h>
#include <linux/export.h>
#include <linux/sched.h>
Go to the source code of this file.
klist_add_after - Init a klist_node and add it after an existing node
: node we're adding. : node to put
after
Definition at line 147 of file klist.c.
klist_add_before - Init a klist_node and add it before an existing node
: node we're adding. : node to put
after
Definition at line 163 of file klist.c.
klist_add_head - Initialize a klist_node and add it to front.
: node we're adding. : klist it's going on.
Definition at line 123 of file klist.c.
klist_add_tail - Initialize a klist_node and add it to back.
: node we're adding. : klist it's going on.
Definition at line 135 of file klist.c.
klist_del - Decrement the reference count of node and try to remove.
: node we're deleting.
Definition at line 229 of file klist.c.
klist_init - Initialize a klist structure. : The klist we're initializing. : The get function for the embedding object (NULL if none) : The put function for the embedding object (NULL if none)
Initialises the klist structure. If the klist_node structures are going to be embedded in refcounted objects (necessary for safe deletion) then the get/put arguments are used to initialise functions that take and release references on the embedding objects.
Definition at line 85 of file klist.c.
klist_iter_exit - Finish a list iteration. : Iterator structure.
Must be called when done iterating over list, as it decrements the refcount of the current node. Necessary in case iteration exited before the end of the list was reached, and always good form.
Definition at line 312 of file klist.c.
klist_iter_init_node - Initialize a klist_iter structure. : klist we're iterating. : klist_iter we're filling.
: node to start with.
Similar to klist_iter_init(), but starts the action off with
, instead of with the list head.
Definition at line 281 of file klist.c.
klist_next - Ante up next node in list. : Iterator structure.
First grab list lock. Decrement the reference count of the previous node, if there was one. Grab the next node, increment its reference count, drop the lock, and return that next node.
Definition at line 334 of file klist.c.
klist_node_attached - Say whether a node is bound to a list or not.
: Node that we're testing.
Definition at line 266 of file klist.c.
klist_remove - Decrement the refcount of node and wait for it to go away.
: node we're removing.
Definition at line 239 of file klist.c.