Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\key.c Create Date:2022-07-28 18:16:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:register_key_type - Unregister a type of key.*@ktype: The key type.* Unregister a key type and mark all the extant keys of this type as dead.* Those keys of this type are then destroyed to get rid of their payloads and

Proto:void unregister_key_type(struct key_type *ktype)

Type:void

Parameter:

TypeParameterName
struct key_type *ktype
1165  lock for writing
1166  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
1167  downgrade write lock to read lock
1168  Reap keys of dead type.* We use three flags to make sure we see three complete cycles of the garbage* collector: the first to mark keys of that type as being dead, the second to* collect dead links and the third to clean up the dead keys. We have to be
1169  pr_notice("Key type %s unregistered\n", ame of the type )
1170  lease a read lock
Caller
NameDescribe
cleanup_trusted
cleanup_encrypted