• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright (c) 2017 Cyril Hrubis <chrubis@suse.cz>
3  */
4 
5 #ifndef TST_KERNEL_H__
6 #define TST_KERNEL_H__
7 
8 /*
9  * Returns 32 if we are running on 32bit kernel and 64 if on 64bit kernel.
10  */
11 int tst_kernel_bits(void);
12 
13 /**
14  * Checks support for the kernel driver.
15  *
16  * @param name The name of the driver.
17  * @return Returns 0 if the kernel has the driver or modprobe is missing.
18  */
19 int tst_check_driver(const char *name);
20 
21 #endif	/* TST_KERNEL_H__ */
22