Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_nodelta

Proto:static int test_nodelta(void)

Type:int

Parameter:Nothing

306  struct world world = {}
311  objagg = bjagg_create - creates a new objagg instance*@ops: user-specific callbacks*@objagg_hints: hints, can be NULL*@priv: pointer to a private data passed to the ops* Note: all locking must be provided by the caller
312  If IS_ERR(objagg) Then Return PTR_ERR(objagg)
315  err = check_stats_zero(objagg)
316  If err Then Go to err_stats_first_zero
320  When i < NUM_KEYS cycle
321  err = test_nodelta_obj_get( & world, objagg, i, true)
322  If err Then Go to err_obj_first_get
329  When i < NUM_KEYS cycle
330  err = test_nodelta_obj_get( & world, objagg, i, false)
331  If err Then Go to err_obj_second_get
335  err = check_stats_nodelta(objagg)
336  If err Then Go to err_stats_nodelta
339  When i >= 0 cycle
340  err = test_nodelta_obj_put( & world, objagg, i, false)
341  If err Then Go to err_obj_first_put
344  When i >= 0 cycle
345  err = test_nodelta_obj_put( & world, objagg, i, true)
346  If err Then Go to err_obj_second_put
350  err = check_stats_zero(objagg)
351  If err Then Go to err_stats_second_zero
354  bjagg_destroy - destroys a new objagg instance*@objagg: objagg instance* Note: all locking must be provided by the caller.
355  Return 0
357  err_stats_nodelta :
358  err_obj_first_put :
359  err_obj_second_get :
360  When i >= 0 cycle world_obj_put( & world, objagg, i)
363  i = NUM_KEYS
364  err_obj_first_get :
365  err_obj_second_put :
366  When i >= 0 cycle world_obj_put( & world, objagg, i)
368  err_stats_first_zero :
369  err_stats_second_zero :
370  bjagg_destroy - destroys a new objagg instance*@objagg: objagg instance* Note: all locking must be provided by the caller.
371  Return err
Caller
NameDescribe
test_objagg_init