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