Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:check_stats_nodelta

Proto:static int check_stats_nodelta(struct objagg *objagg)

Type:int

Parameter:

TypeParameterName
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  If IS_ERR(stats) Then Return PTR_ERR(stats)
254  If stats_info_count != NUM_KEYS Then
255  pr_err("Stats: Unexpected object count (%u expected, %u returned)\n", NUM_KEYS, stats_info_count)
257  err = -EINVAL
258  Go to stats_put
261  When i < stats_info_count cycle
262  If user_count != 2 Then
263  pr_err("Stats: incorrect user count\n")
264  err = -EINVAL
265  Go to stats_put
268  pr_err("Stats: incorrect delta user count\n")
269  err = -EINVAL
270  Go to stats_put
273  err = 0
275  stats_put :
276  objagg_stats_put(stats)
277  Return err
Caller
NameDescribe
test_nodelta