函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\key.c Create Date:2022-07-27 19:51:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void unregister_key_type(struct key_type *ktype)

返回类型:void

参数:

类型参数名称
struct key_type *ktype
1165  lock for writing
1166  删除链表项并重新初始化
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  打印注释信息("Key type %s unregistered\n", ame of the type )
1170  lease a read lock
调用者
名称描述
cleanup_trusted
cleanup_encrypted