Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:gister_key_type - Register a type of key.*@ktype: The new key type.* Register a new key type.* Returns 0 on success or -EEXIST if a type of this name already exists.

Proto:int register_key_type(struct key_type *ktype)

Type:int

Parameter:

TypeParameterName
struct key_type *ktype
1132  memset( & key->sem lock class , 0, size of key->sem lock class )
1134  ret = -EEXIST
1135  lock for writing
1139  If strcmp(ame of the type , ame of the type ) == 0 Then Go to out
1144  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
1146  pr_notice("Key type %s registered\n", ame of the type )
1147  ret = 0
1149  out :
1150  lease a write lock
1151  Return ret
Caller
NameDescribe
big_key_initRegister key type
init_trusted
init_encrypted
fscrypt_init_keyring