函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:test_parman_resize

函数原型:static int test_parman_resize(void *priv, unsigned long new_count)

返回类型:int

参数:

类型参数名称
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  如果new_count恒等于0则返回:0
102  如果非prio_array则返回:负ENOMEM
104  old_count等于prio_array_limit
105  如果new_count大于old_countmemset( & prio_array[old_count], 0, ITEM_PTRS_SIZE(new_count - old_count))
108  prio_array等于prio_array
109  prio_array_limit等于new_count
110  返回:0
调用者
名称描述
test_parman_create
test_parman_destroy