Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:run_request

Proto:static int run_request(void *data)

Type:int

Parameter:

TypeParameterName
void *data
219  info = data
220  test_dev = test_dev
221  config = config
224  Case test_case == TEST_KMOD_DRIVER
225  ret_sync = try to load a kernel module("%s", test_driver)
226  Break
227  Case test_case == TEST_KMOD_FS_TYPE
228  fs_sync = get_fs_type(test_fs)
229  need_mod_put = true
230  Break
231  Default
233  BUG()
234  Return -EINVAL
237  dev_dbg(dev, "Ran thread %u\n", thread_idx)
239  test_kmod_put_module(info)
241  mutex_lock( & thread_mutex)
242  task_sync = NULL
243  Must run with thread_mutex held
244  mutex_unlock( & thread_mutex)
246  Return 0