Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:assoc_array_find - Find an object by index key*@array: The associative array to search

Proto:void *assoc_array_find(const struct assoc_array *array, const struct assoc_array_ops *ops, const void *index_key)

Type:void

Parameter:

TypeParameterName
const struct assoc_array *array
const struct assoc_array_ops *ops
const void *index_key
314  If Navigate through the internal tree looking for the closest node to the key. != assoc_array_walk_found_terminal_node Then Return NULL
318  node = Node in which leaf might be found
323  When slot < Number of slots per node cycle
324  ptr = READ_ONCE(slots[slot])
325  If ptr && assoc_array_ptr_is_leaf(ptr) Then
331  If compare_object(leaf, index_key) Then Return leaf
336  Return NULL
Caller
NameDescribe
find_key_to_updateSearch the given keyring for a key that might be updated.* The caller must guarantee that the keyring is a keyring and that the* permission is granted to modify the keyring as no check is made here. The