Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Search inside a keyring for a key. We can search by walking to it* directly based on its index-key or we can iterate over the entire* tree looking for it, based on the match function.

Proto:static int search_keyring(struct key *keyring, struct keyring_search_context *ctx)

Type:int

Parameter:

TypeParameterName
struct key *keyring
struct keyring_search_context *ctx
652  If Type of lookup for this search. == Direct lookup by description. Then
655  object = assoc_array_find - Find an object by index key*@array: The associative array to search
658  Return If object Then iterator(object, ctx) Else 0
660  Return assoc_array_iterate - Pass all objects in the array to a callback*@array: The array to iterate over.*@iterator: The callback function.*@iterator_data: Private data for the callback function.* Iterate over all the objects in an associative array
Caller
NameDescribe
search_nested_keyringsSearch a tree of keyrings that point to other keyrings up to the maximum* depth.