Class Service

Inheritance Relationships

Derived Types

Class Documentation

class Service

The root class for devices and drivers.

Subclassed by Gaia::Dev::AcpiDevice, Gaia::Dev::AcpiPc, Gaia::Dev::FbConsole, Gaia::Dev::PciBus, Gaia::Dev::PciDevice, Gaia::Dev::Ps2Controller, Gaia::Dev::VirtioBlock, Gaia::Dev::VirtioDevice

Public Functions

void attach(Service *provider)

Attaches the client to a provider in the registry.

Parameters:

provider – The provider to attach to

inline virtual void start(Service *provider)

Starts the service and associates it with the provider.

Parameters:

provider – The provider to associate with

inline virtual Service *probe(Service *provider)

Probe a matched service to see if it can be used.

Parameters:

provider – The matched service

Returns:

A Service instance or NULL if probing is unsuccessful.

inline virtual bool match_properties(Properties &properties)
inline virtual const char *class_name()
inline virtual const char *name()
inline virtual ~Service()

Protected Attributes

void *node

Friends

friend class Registry