Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:keyring_restriction_alloc

Proto:static struct key_restriction *keyring_restriction_alloc(key_restrict_link_func_t check)

Type:struct key_restriction

Parameter:

TypeParameterName
key_restrict_link_func_tcheck
980  keyres = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
983  If Not keyres Then Return ERR_PTR( - ENOMEM)
986  check = check
988  Return keyres
Caller
NameDescribe
keyring_restrictkeyring_restrict - Look up and apply a restriction to a keyring*@keyring_ref: The keyring to be restricted*@type: The key type that will provide the restriction checker.*@restriction: The restriction options to apply to the keyring