函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_stats_nodelta

函数原型:static int check_stats_nodelta(struct objagg *objagg)

返回类型:int

参数:

类型参数名称
struct objagg *objagg
250  stats等于bjagg_stats_get - obtains stats of the objagg instance*@objagg: objagg instance* Note: all locking must be provided by the caller.* The returned structure contains statistics of all object* currently in use, ordered by following rules:
251  如果是错误则返回:错误
254  如果stats_info_count不等于NUM_KEYS
255  打印错误信息("Stats: Unexpected object count (%u expected, %u returned)\n", NUM_KEYS, stats_info_count)
257  err等于负EINVAL
258  转到:stats_put
261 i小于stats_info_count循环
262  如果user_count不等于2则
263  打印错误信息("Stats: incorrect user count\n")
264  err等于负EINVAL
265  转到:stats_put
267  如果 includes delta object users 不等于2则
268  打印错误信息("Stats: incorrect delta user count\n")
269  err等于负EINVAL
270  转到:stats_put
273  err等于0
275  stats_put :
276  objagg_stats_put(stats)
277  返回:err
调用者
名称描述
test_nodelta