Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_trusted

Proto:static int __init init_trusted(void)

Type:int

Parameter:Nothing

1237  chip = tpm_default_chip()
1238  If Not chip Then Return 0
1241  ret = init_digests()
1242  If ret < 0 Then Go to err_put
1244  ret = trusted_shash_alloc()
1245  If ret < 0 Then Go to err_free
1247  ret = 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.
1248  If ret < 0 Then Go to err_release
1250  Return 0
1251  err_release :
1252  trusted_shash_release()
1253  err_free :
1254  kfree(digests)
1255  err_put :
1256  put_device( & dev)
1257  Return ret