Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_hints_case

Proto:static int test_hints_case(const struct hints_case *hints_case)

Type:int

Parameter:

TypeParameterName
const struct hints_case *hints_case
913  struct world world2 = {}
914  struct world world = {}
921  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
922  If IS_ERR(objagg) Then Return PTR_ERR(objagg)
925  When i < key_ids_count cycle
926  objagg_obj = world_obj_get( & world, objagg, key_ids[i])
928  If IS_ERR(objagg_obj) Then
930  Go to err_world_obj_get
934  pr_debug_stats(objagg)
935  err = check_expect_stats(objagg, & expect_stats, & errmsg)
936  If err Then
937  pr_err("Stats: %s\n", errmsg)
938  Go to err_check_expect_stats
941  hints = bjagg_hints_get - obtains hints instance*@objagg: objagg instance*@opt_algo_type: type of hints finding algorithm* Note: all locking must be provided by the caller.* According to the algo type, the existing objects of objagg instance
942  If IS_ERR(hints) Then
943  err = PTR_ERR(hints)
944  Go to err_hints_get
947  pr_debug_hints_stats(hints)
948  err = check_expect_hints_stats(hints, & expect_stats_hints, & errmsg)
950  If err Then
951  pr_err("Hints stats: %s\n", errmsg)
952  Go to err_check_expect_hints_stats
955  objagg2 = 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
956  If IS_ERR(objagg2) Then Return PTR_ERR(objagg2)
959  When i < key_ids_count cycle
960  objagg_obj = world_obj_get( & world2, objagg2, key_ids[i])
962  If IS_ERR(objagg_obj) Then
964  Go to err_world2_obj_get
968  pr_debug_stats(objagg2)
969  err = check_expect_stats(objagg2, & expect_stats_hints, & errmsg)
971  If err Then
972  pr_err("Stats2: %s\n", errmsg)
973  Go to err_check_expect_stats2
976  err = 0
978  err_check_expect_stats2 :
979  err_world2_obj_get :
980  When i >= 0 cycle world_obj_put( & world2, objagg, key_ids[i])
982  bjagg_hints_put - puts hints instance*@objagg_hints: objagg hints instance* Note: all locking must be provided by the caller.
983  bjagg_destroy - destroys a new objagg instance*@objagg: objagg instance* Note: all locking must be provided by the caller.
984  i = key_ids_count
985  err_check_expect_hints_stats :
986  err_hints_get :
987  err_check_expect_stats :
988  err_world_obj_get :
989  When i >= 0 cycle world_obj_put( & world, objagg, key_ids[i])
992  bjagg_destroy - destroys a new objagg instance*@objagg: objagg instance* Note: all locking must be provided by the caller.
993  Return err
Caller
NameDescribe
test_hints