Kernel I/O manager interface.
More...
#include <i_io_manager.h>
Kernel I/O manager interface.
Definition at line 22 of file i_io_manager.h.
◆ ~IIoManager()
| virtual contur::IIoManager::~IIoManager |
( |
| ) |
|
|
virtualdefault |
◆ close()
Closes a kernel I/O descriptor.
- Parameters
-
- Returns
- Ok on success; NotFound otherwise.
Implemented in contur::IoManager.
◆ open()
Opens a resource and returns a kernel I/O descriptor.
- Parameters
-
| resourceId | Numeric resource identifier. |
| kind | Resource kind. |
| mode | Open mode flags (files only). |
- Returns
- Descriptor on success; error on failure.
Implemented in contur::IoManager.
◆ read()
Reads one value from the descriptor.
- Parameters
-
| fd | Descriptor to read from. |
| pid | Requesting process id (for blocking waits). |
- Returns
- Read value on success; ResourceBusy if the call should block.
Implemented in contur::IoManager.
◆ registerFile()
Registers a file resource ID to a filesystem path.
- Parameters
-
| resourceId | Numeric resource identifier. |
| path | Absolute file path. |
| kind | File or LAN file resource kind. |
- Returns
- Ok on success; AlreadyExists/InvalidArgument otherwise.
Implemented in contur::IoManager.
◆ registerSocket()
Registers a socket resource ID.
- Parameters
-
| resourceId | Numeric resource identifier. |
| capacity | Maximum queued elements. |
| kind | Socket resource kind. |
- Returns
- Ok on success; AlreadyExists/InvalidArgument otherwise.
Implemented in contur::IoManager.
◆ setWakeCallback()
| virtual void contur::IIoManager::setWakeCallback |
( |
IoWakeCallback | callback | ) |
|
|
pure virtual |
Sets the wake callback invoked when I/O becomes ready.
Implemented in contur::IoManager.
◆ write()
Writes one value to the descriptor.
- Parameters
-
| fd | Descriptor to write to. |
| value | Value to write. |
- Returns
- Ok on success; ResourceBusy if the call should block.
Implemented in contur::IoManager.
The documentation for this class was generated from the following file: