trikRuntime
trikControl::ModuleLoader Class Reference

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...
 

Detailed Description

Some devices like range sensor require kernel modules to work.

This class keeps track of loaded kernel modules and loads them if needed.

Constructor & Destructor Documentation

ModuleLoader::ModuleLoader ( trikHal::SystemConsoleInterface console)

Constructor.

Parameters
console- system console that is used to issue "modprobe" command.

Member Function Documentation

bool ModuleLoader::load ( const QString &  module)

Loads given module using modprobe. Returns true if module is loaded.


The documentation for this class was generated from the following files: