函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:test_parman_create

函数原型:static struct test_parman *test_parman_create(const struct parman_ops *ops)

返回类型:struct test_parman

参数:

类型参数名称
const struct parman_ops *ops
222  test_parman等于分配内存并置零
223  如果非test_parman则返回:错误号
225  err等于test_parman_resize(test_parman, TEST_PARMAN_BASE_COUNT)
226  如果err则转到:err_resize
228  parman等于parman_create - creates a new parman instance*@ops: caller-specific callbacks*@priv: pointer to a private data passed to the ops* Note: all locking must be provided by the caller.* Each parman instance manages an array area with chunks of entries
229  如果非parman
230  err等于负ENOMEM
231  转到:err_parman_create
233  test_parman_rnd_init(test_parman)
234  test_parman_prios_init(test_parman)
235  test_parman_items_init(test_parman)
236  run_budget等于TEST_PARMAN_RUN_BUDGET
237  返回:test_parman
239  err_parman_create :
240  test_parman_resize(test_parman, 0)
241  err_resize :
242  kfree(test_parman)
243  返回:错误号
调用者
名称描述
test_parman_lsort