Class Service¶
Defined in File service.hpp
Inheritance Relationships¶
Derived Types¶
public Gaia::Dev::AcpiDevice
(Class AcpiDevice)public Gaia::Dev::AcpiPc
(Class AcpiPc)public Gaia::Dev::FbConsole
(Class FbConsole)public Gaia::Dev::PciBus
(Class PciBus)public Gaia::Dev::PciDevice
(Class PciDevice)public Gaia::Dev::Ps2Controller
(Class Ps2Controller)public Gaia::Dev::VirtioBlock
(Class VirtioBlock)public Gaia::Dev::VirtioDevice
(Class VirtioDevice)
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
-
void attach(Service *provider)¶