[PATCH] add klist_node_attached() to determine if a node is on a list or not.
Signed-off-by: Patrick Mochel <mochel@digitalimplant.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> diff -Nru a/include/linux/klist.h b/include/linux/klist.h
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2287c322b6
commit
8b0c250be4
@@ -37,6 +37,8 @@ extern void klist_add_head(struct klist * k, struct klist_node * n);
|
||||
extern void klist_del(struct klist_node * n);
|
||||
extern void klist_remove(struct klist_node * n);
|
||||
|
||||
extern int klist_node_attached(struct klist_node * n);
|
||||
|
||||
|
||||
struct klist_iter {
|
||||
struct klist * i_klist;
|
||||
|
Reference in New Issue
Block a user