]> git.ipfire.org Git - thirdparty/kmod.git/blob - libkmod/libkmod-util.h
46db70d85a1acf78dbe155e9c9099e8ec12a39f1
[thirdparty/kmod.git] / libkmod / libkmod-util.h
1 #pragma once
2
3 #include <limits.h>
4 #include <stdbool.h>
5 #include <stddef.h>
6
7 #include <shared/macro.h>
8
9 #define KMOD_EXTENSION_UNCOMPRESSED ".ko"
10
11 char *modname_normalize(const char *modname, char buf[PATH_MAX], size_t *len) __attribute__((nonnull(1, 2)));
12 char *path_to_modname(const char *path, char buf[PATH_MAX], size_t *len) __attribute__((nonnull(2)));
13 bool path_ends_with_kmod_ext(const char *path, size_t len) __attribute__((nonnull(1)));