Home
last modified time | relevance | path

Searched refs:ktype (Results 1 – 4 of 4) sorted by relevance

/security/keys/
Dkey.c702 struct key_type *ktype; in key_type_lookup() local
708 list_for_each_entry(ktype, &key_types_list, link) { in key_type_lookup()
709 if (strcmp(ktype->name, type) == 0) in key_type_lookup()
714 ktype = ERR_PTR(-ENOKEY); in key_type_lookup()
717 return ktype; in key_type_lookup()
738 void key_type_put(struct key_type *ktype) in key_type_put() argument
1146 int register_key_type(struct key_type *ktype) in register_key_type() argument
1151 memset(&ktype->lock_class, 0, sizeof(ktype->lock_class)); in register_key_type()
1158 if (strcmp(p->name, ktype->name) == 0) in register_key_type()
1163 list_add(&ktype->link, &key_types_list); in register_key_type()
[all …]
Dkeyctl.c172 struct key_type *ktype; in SYSCALL_DEFINE4() local
215 ktype = key_type_lookup(type); in SYSCALL_DEFINE4()
216 if (IS_ERR(ktype)) { in SYSCALL_DEFINE4()
217 ret = PTR_ERR(ktype); in SYSCALL_DEFINE4()
222 key = request_key_and_link(ktype, description, NULL, callout_info, in SYSCALL_DEFINE4()
240 key_type_put(ktype); in SYSCALL_DEFINE4()
721 struct key_type *ktype; in keyctl_keyring_search() local
756 ktype = key_type_lookup(type); in keyctl_keyring_search()
757 if (IS_ERR(ktype)) { in keyctl_keyring_search()
758 ret = PTR_ERR(ktype); in keyctl_keyring_search()
[all …]
Dgc.c112 void key_gc_keytype(struct key_type *ktype) in key_gc_keytype() argument
114 kenter("%s", ktype->name); in key_gc_keytype()
116 key_gc_dead_keytype = ktype; in key_gc_keytype()
Dinternal.h93 extern void key_type_put(struct key_type *ktype);
182 extern void key_gc_keytype(struct key_type *ktype);