函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trigger_config_run_type

函数原型:static int trigger_config_run_type(struct kmod_test_device *test_dev, enum kmod_test_case test_case, const char *test_str)

返回类型:int

参数:

类型参数名称
struct kmod_test_device *test_dev
enum kmod_test_casetest_case
const char *test_str
734  copied等于0
735  config等于config
737  mutex_lock( & config_mutex)
740  :test_case恒等于TEST_KMOD_DRIVER
741  kfree_const - conditionally free memory*@x: pointer to the memory* Function calls kfree only if @x is not in .rodata section.
742  test_driver = NULL
743  copied等于config_copy_test_driver_name(config, test_str, strlen(test_str))
745  退出
746  :test_case恒等于TEST_KMOD_FS_TYPE
747  kfree_const - conditionally free memory*@x: pointer to the memory* Function calls kfree only if @x is not in .rodata section.
748  test_driver = NULL
749  copied等于config_copy_test_fs(config, test_str, strlen(test_str))
751  退出
752  默认
753  mutex_unlock( & config_mutex)
754  返回:负EINVAL
757  test_case等于test_case
759  mutex_unlock( & config_mutex)
761  如果copied小于等于0或copied不等于strlen(test_str)则
762  test_is_oom = true
763  返回:负ENOMEM
766  test_is_oom = false
768  返回:trigger_config_run(test_dev)
调用者
名称描述
test_kmod_init