Top |
bool | igt_kmod_is_loaded () |
void | igt_kmod_list_loaded () |
bool | igt_kmod_has_param () |
int | igt_kmod_load () |
int | igt_kmod_unload () |
int | igt_kmod_unbind () |
int | igt_audio_driver_unload () |
int | igt_intel_driver_load () |
int | igt_intel_driver_unload () |
int | igt_xe_driver_unload () |
int | igt_amdgpu_driver_load () |
int | igt_amdgpu_driver_unload () |
void | igt_kunit () |
void | igt_kselftests () |
int | igt_ktest_init () |
int | igt_ktest_begin () |
void | igt_kselftest_get_tests () |
int | igt_kselftest_execute () |
void | igt_ktest_end () |
void | igt_ktest_fini () |
This library provides helpers to load/unload module driver.
Note on loading/reloading:
Loading/unload/reloading the driver requires that resources to /dev/dri to
be released (closed). A potential mistake would be to submit commands to the
GPU by having a fd returned by drm_open_driver
, which is closed by atexit
signal handler so reloading/unloading the driver will fail if performed
afterwards. One possible solution to this issue is to use
or use __drm_open_driver()
to set module parameters
dynamically.igt_set_module_param()
int igt_kmod_load (const char *mod_name
,const char *opts
);
This function loads a kernel module using the name specified in mod_name
.
int igt_intel_driver_load (const char *opts
,const char *driver
);
Loads an Intel driver and its dependencies.
int
igt_intel_driver_unload (const char *driver
);
Unloads an Intel driver and its dependencies.
void igt_kunit (const char *module_name
,const char *name
,const char *opts
);
Loads the test module, parses its (k)tap dmesg output, then unloads it
module_name |
the name of the module |
|
suite |
the name of test suite to be executed, also used as subtest name; if NULL then test cases from all test suites provided by the module are executed as dynamic sub-subtests of one IGT subtest, which name is derived from the module name by cutting off its optional trailing _test or _kunit suffix |
|
opts |
options to load the module |
void igt_kselftests (const char *module_name
,const char *module_options
,const char *result_option
,const char *filter
);
void igt_kselftest_get_tests (struct kmod_module *kmod
,const char *filter
,struct igt_list_head *tests
);
int igt_kselftest_execute (struct igt_ktest *tst
,struct igt_kselftest_list *tl
,const char *module_options
,const char *result
);