Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Handle insertion into an empty tree.

Proto:static bool assoc_array_insert_in_empty_tree(struct assoc_array_edit *edit)

Type:bool

Parameter:

TypeParameterName
struct assoc_array_edit *edit
455  pr_devel("-->%s()\n", __func__)
457  new_n0 = 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).
458  If Not new_n0 Then Return false
461  new_meta[0] = assoc_array_node_to_ptr(new_n0)
462  leaf_p = slots[0]
463  adjust_count_on = new_n0
464  ptr = The node at the root of the tree
465  to = assoc_array_node_to_ptr(new_n0)
467  pr_devel("<--%s() = ok [no root]\n", __func__)
468  Return true
Caller
NameDescribe
assoc_array_insertassoc_array_insert - Script insertion of an object into an associative array*@array: The array to insert into