Lines Matching full:handler

3  *  pkey base: debug feature, pkey handler registry
30 * pkey handler registry
36 int pkey_handler_register(struct pkey_handler *handler) in pkey_handler_register() argument
40 if (!handler || in pkey_handler_register()
41 !handler->is_supported_key || in pkey_handler_register()
42 !handler->is_supported_keytype) in pkey_handler_register()
45 if (!try_module_get(handler->module)) in pkey_handler_register()
52 if (h == handler) { in pkey_handler_register()
55 module_put(handler->module); in pkey_handler_register()
61 list_add_rcu(&handler->list, &handler_list); in pkey_handler_register()
65 module_put(handler->module); in pkey_handler_register()
67 PKEY_DBF_INFO("%s pkey handler '%s' registered\n", __func__, in pkey_handler_register()
68 handler->name ?: "<no name>"); in pkey_handler_register()
74 int pkey_handler_unregister(struct pkey_handler *handler) in pkey_handler_unregister() argument
77 list_del_rcu(&handler->list); in pkey_handler_unregister()
78 INIT_LIST_HEAD_RCU(&handler->list); in pkey_handler_unregister()
82 PKEY_DBF_INFO("%s pkey handler '%s' unregistered\n", __func__, in pkey_handler_unregister()
83 handler->name ?: "<no name>"); in pkey_handler_unregister()
90 * Handler invocation functions.
133 void pkey_handler_put(const struct pkey_handler *handler) in pkey_handler_put() argument
137 if (!handler) in pkey_handler_put()
142 if (h == handler) { in pkey_handler_put()
171 * This handler invocation is special as there may be more than
172 * one handler providing support for the very same key (type).
173 * And the handler may not respond true on is_supported_key(),
344 /* the handler registry does not need any init */ in pkey_init()