/usr/include/blockdev/module.h is in libblockdev-utils-dev 2.16-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #include <glib.h>
#ifndef BD_UTILS_MODULE
#define BD_UTILS_MODULE
GQuark bd_utils_module_error_quark (void);
#define BD_UTILS_MODULE_ERROR bd_utils_module_error_quark ()
typedef enum {
BD_UTILS_MODULE_ERROR_KMOD_INIT_FAIL,
BD_UTILS_MODULE_ERROR_FAIL,
BD_UTILS_MODULE_ERROR_NOEXIST,
BD_UTILS_MODULE_ERROR_MODULE_CHECK_ERROR,
} BDUtilsModuleError;
gboolean bd_utils_have_kernel_module (const gchar *module_name, GError **error);
gboolean bd_utils_load_kernel_module (const gchar *module_name, const gchar *options, GError **error);
gboolean bd_utils_unload_kernel_module (const gchar *module_name, GError **error);
#endif /* BD_UTILS_MODULE */
|