函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Only wait *iff* we did not run into any errors during all of our thread* set up. If run into any issues we stop threads and just bail out with* an error to the trigger. This also means we don't need any tally work* for any threads which fail.

函数原型:static int try_requests(struct kmod_test_device *test_dev)

返回类型:int

参数:

类型参数名称
struct kmod_test_device *test_dev
390  config等于config
393  bool any_error = false
395 idx小于num_threads循环
396  如果test_is_oom
397  any_error = true
398  退出
401  ret等于try_one_request(test_dev, idx)
402  如果ret
403  any_error = true
404  退出
408  如果非any_error
409  test_is_oom = false
410  dev_info(dev, "No errors were found while initializing threads\n")
412  wait_for_completion( & kthreads_done)
413  XXX: add result option to display if all errors did not match.* For now we just keep any error code if one was found.* If this ran it means *all* tasks were created fine and we* are now just collecting results.
414  否则
415  test_is_oom = true
416  dev_info(dev, "At least one thread failed to start, stop all work\n")
418  test_dev_kmod_stop_tests(test_dev)
419  返回:负ENOMEM
422  返回:0
调用者
名称描述
run_test_driver
run_test_fs_type