2020-11-09 05:23:58 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2017-10-08 15:55:24 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <libkmod.h>
|
|
|
|
|
|
|
|
#include "macro.h"
|
|
|
|
|
|
|
|
DEFINE_TRIVIAL_CLEANUP_FUNC(struct kmod_ctx*, kmod_unref);
|
|
|
|
DEFINE_TRIVIAL_CLEANUP_FUNC(struct kmod_module*, kmod_module_unref);
|
|
|
|
DEFINE_TRIVIAL_CLEANUP_FUNC(struct kmod_list*, kmod_module_unref_list);
|
2018-07-06 11:57:54 +02:00
|
|
|
|
2018-07-06 12:28:09 +02:00
|
|
|
int module_load_and_warn(struct kmod_ctx *ctx, const char *module, bool verbose);
|