Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Merge two NULL-terminated pointer arrays into a newly allocated* array, which is also NULL-terminated. Nomenclature is inspired by* memset_p() and memcat() found elsewhere in the kernel source tree.

Proto:void **__memcat_p(void **a, void **b)

Type:void

Parameter:

TypeParameterName
void **a
void **b
12  p = a
16  When p cycle When p cycle
21  nr++
23  new = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
24  If Not new Then Return NULL
28  When nr >= 0 cycle new[nr] = p
31  Return new