BazisLib::Linux::Device Class Reference

#include <device.h>

Inherited by BazisLib::Linux::BasicBlockDevice, and BazisLib::Linux::BasicCharacterDevice.

List of all members.

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


Detailed Description

This class serves as a very basic superclass for every class that represents a Linux device. See comments inside chardev.cpp for details on overhead introduced by object-oriented model.

Constructor & Destructor Documentation

__bzslib_extern BazisLib::Linux::Device::Device ( const char *  pszDeviceName  )  [inline, protected]

virtual __bzslib_extern BazisLib::Linux::Device::~Device (  )  [inline, virtual]


Member Function Documentation

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.


Member Data Documentation

std::string BazisLib::Linux::Device::m_DeviceName [protected]


The documentation for this class was generated from the following file:
SourceForge.net Logo