Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_parman_resize

Proto:static int test_parman_resize(void *priv, unsigned long new_count)

Type:int

Parameter:

TypeParameterName
void *priv
unsigned longnew_count
94  test_parman = priv
98  prio_array = krealloc - reallocate memory. The contents will remain unchanged.*@p: object to reallocate memory for.*@new_size: how many bytes of memory are required.*@flags: the type of memory to allocate.* The contents of the object pointed to are preserved up to the
100  If new_count == 0 Then Return 0
102  If Not prio_array Then Return -ENOMEM
104  old_count = prio_array_limit
105  If new_count > old_count Then memset( & prio_array[old_count], 0, ITEM_PTRS_SIZE(new_count - old_count))
108  prio_array = prio_array
109  prio_array_limit = new_count
110  Return 0
Caller
NameDescribe
test_parman_create
test_parman_destroy