Go to the documentation of this file.
18 #ifndef __LIB_LIBFS_DEVICESERVER_H
19 #define __LIB_LIBFS_DEVICESERVER_H
void registerInterrupt(Device *dev, Size vector)
Register an interrupt vector for the given device.
Abstract device class interface.
Abstract filesystem class.
void registerDevice(Device *dev, const char *path)
Add a Device.
virtual void interruptHandler(Size vector)
Interrupt request handler.
DeviceServer(const char *path)
Constructor.
Index< Device, MaximumDevices > m_devices
Contains all Devices served by this DeviceServer.
unsigned int Size
Any sane size indicator cannot go negative.
static const Size MaximumDevices
Maximum number of Devices that can be registered.
virtual FileSystem::Result initialize()
Initialize DeviceServer.
Result
Result code for filesystem Actions.
virtual ~DeviceServer()
Destructor.
Index< List< Device * >, MaximumInterrupts > m_interrupts
Registers Devices using interrupts.
static const Size MaximumInterrupts
Maximum number of interrupts that can be registered.