mirror of
https://github.com/AuxXxilium/kmod.git
synced 2025-03-07 21:34:58 +07:00
![]() We return a kmod_list when searching for an alias. Right now, it only search for aliases in config files. To use it, we create a list: list = NULL; kmod_module_new_from_lookup(..., &list); And iterate over it to get the modules and their details: kmod_list_foreach(l, list) { struct kmod_mod *mod = kmod_module_get_module(l); ... ... kmod_module_get_name(mod); ... kmod_module_get_path(mod); } Aliases might contain globs and are match by using fnmatch(). |
||
---|---|---|
.. | ||
.gitignore | ||
libkmod-config.c | ||
libkmod-index.c | ||
libkmod-index.h | ||
libkmod-list.c | ||
libkmod-loaded.c | ||
libkmod-module.c | ||
libkmod-private.h | ||
libkmod-util.c | ||
libkmod.c | ||
libkmod.h | ||
libkmod.pc.in | ||
libkmod.sym | ||
macro.h |