函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:assoc_array_apply_edit - Apply an edit script to an associative array*@edit: The script to apply.* Apply an edit script to an associative array to effect an insertion,* deletion or clearance. As the edit script includes preallocated memory,

函数原型:void assoc_array_apply_edit(struct assoc_array_edit *edit)

返回类型:void

参数:

类型参数名称
struct assoc_array_edit *edit
1353  打印调试信息("-->%s()\n", __func__)
1355  smp_wmb()
1356  如果leaf_pleaf_p等于leaf
1359  smp_wmb()
1360 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(set_parent_slot)循环如果p
1362  p等于to
1364  smp_wmb()
1365 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(set_backpointers)循环如果set_backpointers[i]则
1367  set_backpointers[i]等于set_backpointers_to
1369  smp_wmb()
1370 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(set)循环如果ptr
1372  ptr等于to
1374  如果(The node at the root of the tree == NULL)则
1375  nr_leaves_on_tree等于0
1376  否则如果adjust_count_on
1377  node等于adjust_count_on
1378  循环
1381  ptr等于back_pointer
1382  如果非ptr退出
1384  如果assoc_array_ptr_is_shortcut(ptr)则
1386  ptr等于back_pointer
1387  如果非ptr退出
1394  nr_leaves_on_tree加等于adjust_count_by
1397  Post an RCU callback to be invoked after the end of an RCU grace* period. But since we have but one CPU, that would be after any* quiescent state.
调用者
名称描述
assoc_array_gcassoc_array_gc - Garbage collect an associative array
__key_unlinkApply an unlink change.
keyring_clearkeyring_clear - Clear a keyring*@keyring: The keyring to clear.* Clear the contents of the specified keyring.* Returns 0 if successful or -ENOTDIR if the keyring isn't a keyring.
keyring_revoke
__key_linkLink a key into to a keyring.* Must be called with __key_link_begin() having being called. Discards any* already extant link to matching key if there is one, so that each keyring* holds at most one link to any given key of a particular type+description