函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int search_keyring(struct key *keyring, struct keyring_search_context *ctx)

返回类型:int

参数:

类型参数名称
struct key *keyring
struct keyring_search_context *ctx
652  如果Type of lookup for this search. 恒等于Direct lookup by description.
655  object等于assoc_array_find - Find an object by index key*@array: The associative array to search
658  返回:如果objectiterator(object, ctx)否则0
660  返回: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
调用者
名称描述
search_nested_keyringsSearch a tree of keyrings that point to other keyrings up to the maximum* depth.