函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_expect

函数原型:static int check_expect(struct world *world, const struct action_item *action_item, unsigned int orig_delta_count, unsigned int orig_root_count)

返回类型:int

参数:

类型参数名称
struct world *world
const struct action_item *action_item
unsigned intorig_delta_count
unsigned intorig_root_count
566  key_id等于key_id
569  :expect_delta恒等于EXPECT_DELTA_SAME
570  如果orig_delta_count不等于delta_count
571  打印错误信息("Key %u: Delta count changed while expected to remain the same.\n", key_id)
573  返回:负EINVAL
575  退出
576  :expect_delta恒等于EXPECT_DELTA_INC
577  如果WARN_ON(action == ACTION_PUT)则返回:负EINVAL
579  如果orig_delta_count加1不等于delta_count
580  打印错误信息("Key %u: Delta count was not incremented.\n", key_id)
582  返回:负EINVAL
584  退出
585  :expect_delta恒等于EXPECT_DELTA_DEC
586  如果WARN_ON(action == ACTION_GET)则返回:负EINVAL
588  如果orig_delta_count减1不等于delta_count
589  打印错误信息("Key %u: Delta count was not decremented.\n", key_id)
591  返回:负EINVAL
593  退出
598  如果orig_root_count不等于root_count
599  打印错误信息("Key %u: Root count changed while expected to remain the same.\n", key_id)
601  返回:负EINVAL
603  退出
605  如果WARN_ON(action == ACTION_PUT)则返回:负EINVAL
607  如果orig_root_count加1不等于root_count
608  打印错误信息("Key %u: Root count was not incremented.\n", key_id)
610  返回:负EINVAL
612  退出
614  如果WARN_ON(action == ACTION_GET)则返回:负EINVAL
616  如果orig_root_count减1不等于root_count
617  打印错误信息("Key %u: Root count was not decremented.\n", key_id)
619  返回:负EINVAL
623  返回:0
调用者
名称描述
test_delta_action_item