Searched refs:klist (Results 1 – 10 of 10) sorted by relevance
/linux-2.6.39/security/keys/ |
D | keyring.c | 144 struct keyring_list *klist; in keyring_destroy() local 157 klist = rcu_dereference_check(keyring->payload.subscriptions, in keyring_destroy() 160 if (klist) { in keyring_destroy() 161 for (loop = klist->nkeys - 1; loop >= 0; loop--) in keyring_destroy() 162 key_put(klist->keys[loop]); in keyring_destroy() 163 kfree(klist); in keyring_destroy() 172 struct keyring_list *klist; in keyring_describe() local 180 klist = rcu_dereference(keyring->payload.subscriptions); in keyring_describe() 181 if (klist) in keyring_describe() 182 seq_printf(m, ": %u/%u", klist->nkeys, klist->maxkeys); in keyring_describe() [all …]
|
D | gc.c | 71 struct keyring_list *klist; in key_gc_keyring() local 82 klist = rcu_dereference(keyring->payload.subscriptions); in key_gc_keyring() 83 if (!klist) in key_gc_keyring() 86 for (loop = klist->nkeys - 1; loop >= 0; loop--) { in key_gc_keyring() 87 key = klist->keys[loop]; in key_gc_keyring()
|
/linux-2.6.39/include/linux/ |
D | klist.h | 20 struct klist { struct 34 struct klist _name = KLIST_INIT(_name, _get, _put) argument 36 extern void klist_init(struct klist *k, void (*get)(struct klist_node *), 45 extern void klist_add_tail(struct klist_node *n, struct klist *k); 46 extern void klist_add_head(struct klist_node *n, struct klist *k); 57 struct klist *i_klist; 62 extern void klist_iter_init(struct klist *k, struct klist_iter *i); 63 extern void klist_iter_init_node(struct klist *k, struct klist_iter *i,
|
D | attribute_container.h | 18 struct klist containers;
|
D | device.h | 120 extern struct klist *bus_get_device_klist(struct bus_type *bus);
|
/linux-2.6.39/lib/ |
D | klist.c | 48 static struct klist *knode_klist(struct klist_node *knode) in knode_klist() 50 return (struct klist *) in knode_klist() 59 static void knode_set_klist(struct klist_node *knode, struct klist *klist) in knode_set_klist() argument 61 knode->n_klist = klist; in knode_set_klist() 85 void klist_init(struct klist *k, void (*get)(struct klist_node *), in klist_init() 95 static void add_head(struct klist *k, struct klist_node *n) in add_head() 102 static void add_tail(struct klist *k, struct klist_node *n) in add_tail() 109 static void klist_node_init(struct klist *k, struct klist_node *n) in klist_node_init() 123 void klist_add_head(struct klist_node *n, struct klist *k) in klist_add_head() 135 void klist_add_tail(struct klist_node *n, struct klist *k) in klist_add_tail() [all …]
|
D | Makefile | 20 lib-y += kobject.o kref.o klist.o
|
/linux-2.6.39/drivers/base/ |
D | base.h | 32 struct klist klist_devices; 33 struct klist klist_drivers; 47 struct klist klist_devices; 69 struct klist klist_children;
|
D | bus.c | 971 struct klist *bus_get_device_klist(struct bus_type *bus) in bus_get_device_klist() 1015 struct klist *device_klist; in bus_sort_breadthfirst()
|
/linux-2.6.39/fs/ |
D | xattr.c | 426 char *klist = NULL; in listxattr() local 431 klist = kmalloc(size, GFP_KERNEL); in listxattr() 432 if (!klist) in listxattr() 436 error = vfs_listxattr(d, klist, size); in listxattr() 438 if (size && copy_to_user(list, klist, error)) in listxattr() 445 kfree(klist); in listxattr()
|