diff options
Diffstat (limited to 'include/tst_kernel.h')
-rw-r--r-- | include/tst_kernel.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/tst_kernel.h b/include/tst_kernel.h index 9e17bb71e..9d3a8d315 100644 --- a/include/tst_kernel.h +++ b/include/tst_kernel.h @@ -10,8 +10,18 @@ */ int tst_kernel_bits(void); -/** - * Checks support for the kernel driver. +/* + * Checks if the kernel module is built-in. + * + * @param driver The name of the driver. + * @return Returns 0 if builtin driver + * -1 when driver is missing or config file not available. + * On Android *always* 0 (always expect the driver is available). + */ +int tst_check_builtin_driver(const char *driver); + +/* + * Checks support for the kernel module (both built-in and loadable). * * @param driver The name of the driver. * @return Returns 0 if the kernel has the driver, |