#include <device.h>
Inherited by BazisLib::Linux::BasicBlockDevice, and BazisLib::Linux::BasicCharacterDevice.
Public Member Functions | |
virtual LKSTATUS __bzslib_extern | RegisterDevice (class Driver *pDriver) |
Performs device registration. | |
virtual __bzslib_extern | ~Device () |
Protected Member Functions | |
__bzslib_extern | Device (const char *pszDeviceName) |
Protected Attributes | |
std::string | m_DeviceName |
__bzslib_extern BazisLib::Linux::Device::Device | ( | const char * | pszDeviceName | ) | [inline, protected] |
virtual __bzslib_extern BazisLib::Linux::Device::~Device | ( | ) | [inline, virtual] |
virtual LKSTATUS __bzslib_extern BazisLib::Linux::Device::RegisterDevice | ( | class Driver * | pDriver | ) | [virtual] |
Performs device registration.
This method performs all actions required for device to be registered in the system. The Device::RegisterDevice() method registers the device within a driver, while the overrides in child classes should perform all system-wide registration required for the device to work. A typical override should look like this: { LKSTATUS st = __super::RegisterDevice(pDriver); if (!LK_SUCCESS(st)) return st; <---- Register device in system ----> return SUCCESS; }
Reimplemented in BazisLib::Linux::BasicBlockDevice, BazisLib::Linux::BasicCharacterDevice, and BazisLib::Linux::UniversalVolume.
std::string BazisLib::Linux::Device::m_DeviceName [protected] |