Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static int try_requests(struct kmod_test_device *test_dev)

Type:int

Parameter:

TypeParameterName
struct kmod_test_device *test_dev
390  config = config
393  bool any_error = false
395  When idx < num_threads cycle
396  If test_is_oom Then
397  any_error = true
398  Break
401  ret = try_one_request(test_dev, idx)
402  If ret Then
403  any_error = true
404  Break
408  If Not any_error Then
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  Else
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  Return -ENOMEM
422  Return 0
Caller
NameDescribe
run_test_driver
run_test_fs_type