Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:trigger_config_run_type

Proto:static int trigger_config_run_type(struct kmod_test_device *test_dev, enum kmod_test_case test_case, const char *test_str)

Type:int

Parameter:

TypeParameterName
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  Case 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  Break
746  Case 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  Break
752  Default
753  mutex_unlock( & config_mutex)
754  Return -EINVAL
757  test_case = test_case
759  mutex_unlock( & config_mutex)
761  If copied <= 0 || copied != strlen(test_str) Then
762  test_is_oom = true
763  Return -ENOMEM
766  test_is_oom = false
768  Return trigger_config_run(test_dev)
Caller
NameDescribe
test_kmod_init