trikRuntime
|
Some devices like range sensor require kernel modules to work. More...
#include <moduleLoader.h>
Public Member Functions | |
ModuleLoader (trikHal::SystemConsoleInterface &console) | |
Constructor. More... | |
bool | load (const QString &module) |
Loads given module using modprobe. Returns true if module is loaded. More... | |
Some devices like range sensor require kernel modules to work.
This class keeps track of loaded kernel modules and loads them if needed.
ModuleLoader::ModuleLoader | ( | trikHal::SystemConsoleInterface & | console | ) |
Constructor.
console | - system console that is used to issue "modprobe" command. |
bool ModuleLoader::load | ( | const QString & | module | ) |
Loads given module using modprobe. Returns true if module is loaded.