1 2 3 4 5 6 7
#include "common/kmod.h" #include <sys/param.h> #include <sys/module.h> bool ffKmodLoaded(const char* modName) { return modfind(modName) >= 0; }