Line data Source code
1 : /* SPDX-License-Identifier: LGPL-2.1+ */ 2 : #pragma once 3 : 4 : #include <libkmod.h> 5 : 6 : #include "macro.h" 7 : 8 : DEFINE_TRIVIAL_CLEANUP_FUNC(struct kmod_ctx*, kmod_unref); 9 0 : DEFINE_TRIVIAL_CLEANUP_FUNC(struct kmod_module*, kmod_module_unref); 10 0 : DEFINE_TRIVIAL_CLEANUP_FUNC(struct kmod_list*, kmod_module_unref_list); 11 : 12 : int module_load_and_warn(struct kmod_ctx *ctx, const char *module, bool verbose);