diff options
Diffstat (limited to 'include/linux/klist.h')
-rw-r--r-- | include/linux/klist.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/include/linux/klist.h b/include/linux/klist.h index b49385f13419..06c338ef7f1b 100644 --- a/include/linux/klist.h +++ b/include/linux/klist.h | |||
@@ -34,38 +34,38 @@ struct klist { | |||
34 | #define DEFINE_KLIST(_name, _get, _put) \ | 34 | #define DEFINE_KLIST(_name, _get, _put) \ |
35 | struct klist _name = KLIST_INIT(_name, _get, _put) | 35 | struct klist _name = KLIST_INIT(_name, _get, _put) |
36 | 36 | ||
37 | extern void klist_init(struct klist * k, void (*get)(struct klist_node *), | 37 | extern void klist_init(struct klist *k, void (*get)(struct klist_node *), |
38 | void (*put)(struct klist_node *)); | 38 | void (*put)(struct klist_node *)); |
39 | 39 | ||
40 | struct klist_node { | 40 | struct klist_node { |
41 | struct klist * n_klist; | 41 | struct klist *n_klist; |
42 | struct list_head n_node; | 42 | struct list_head n_node; |
43 | struct kref n_ref; | 43 | struct kref n_ref; |
44 | struct completion n_removed; | 44 | struct completion n_removed; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | extern void klist_add_tail(struct klist_node * n, struct klist * k); | 47 | extern void klist_add_tail(struct klist_node *n, struct klist *k); |
48 | extern void klist_add_head(struct klist_node * n, struct klist * k); | 48 | extern void klist_add_head(struct klist_node *n, struct klist *k); |
49 | extern void klist_add_after(struct klist_node *n, struct klist_node *pos); | 49 | extern void klist_add_after(struct klist_node *n, struct klist_node *pos); |
50 | extern void klist_add_before(struct klist_node *n, struct klist_node *pos); | 50 | extern void klist_add_before(struct klist_node *n, struct klist_node *pos); |
51 | 51 | ||
52 | extern void klist_del(struct klist_node * n); | 52 | extern void klist_del(struct klist_node *n); |
53 | extern void klist_remove(struct klist_node * n); | 53 | extern void klist_remove(struct klist_node *n); |
54 | 54 | ||
55 | extern int klist_node_attached(struct klist_node * n); | 55 | extern int klist_node_attached(struct klist_node *n); |
56 | 56 | ||
57 | 57 | ||
58 | struct klist_iter { | 58 | struct klist_iter { |
59 | struct klist * i_klist; | 59 | struct klist *i_klist; |
60 | struct list_head * i_head; | 60 | struct list_head *i_head; |
61 | struct klist_node * i_cur; | 61 | struct klist_node *i_cur; |
62 | }; | 62 | }; |
63 | 63 | ||
64 | 64 | ||
65 | extern void klist_iter_init(struct klist * k, struct klist_iter * i); | 65 | extern void klist_iter_init(struct klist *k, struct klist_iter *i); |
66 | extern void klist_iter_init_node(struct klist * k, struct klist_iter * i, | 66 | extern void klist_iter_init_node(struct klist *k, struct klist_iter *i, |
67 | struct klist_node * n); | 67 | struct klist_node *n); |
68 | extern void klist_iter_exit(struct klist_iter * i); | 68 | extern void klist_iter_exit(struct klist_iter *i); |
69 | extern struct klist_node * klist_next(struct klist_iter * i); | 69 | extern struct klist_node *klist_next(struct klist_iter *i); |
70 | 70 | ||
71 | #endif | 71 | #endif |