Go to the documentation of this file.
12 #ifndef _LINUX_KLIST_H
13 #define _LINUX_KLIST_H
17 #include <linux/list.h>
27 #define KLIST_INIT(_name, _get, _put) \
28 { .k_lock = __SPIN_LOCK_UNLOCKED(_name.k_lock), \
29 .k_list = LIST_HEAD_INIT(_name.k_list), \
33 #define DEFINE_KLIST(_name, _get, _put) \
34 struct klist _name = KLIST_INIT(_name, _get, _put)