|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
a device tree hosted by the service: the driver served under its product id as a kernel driver serves its client - a client's IOCTL lands in ioctl(), every arrival and removal is the broadcast More...
#include <dx_service_driver.h>
Classes | |
| class | app |
| the service's own entry point: it launches the driver, so a device arriving on the machine is served whether a client is connected or not More... | |
| class | peer |
| a client's connection to the driver: what it asks the driver answers More... | |
| struct | property |
| this bus's name in the device tree and the preference store More... | |
Public Member Functions | |
| void | conclude() noexcept override |
| driver(const typename super::match& matching_ids, const char* product_id, dx::log log= {}) | |
| void | launch() override |
Public Attributes | |
| dx::service::driver::app* | this |
Protected Member Functions | |
| void | arrived(typename super::device_t& device) override |
| virtual size_t | ioctl(peer& peer, uint32_t ioctl, const void* in, size_t size_in, void* out, size_t size_out) |
| virtual std::shared_ptr<peer> | peer_create(uint32_t pid) |
| the peer of a connection: a product's driver makes its own | |
| void | removed(typename super::device_t& device) noexcept override |
Protected Attributes | |
| service::server | server{this->product_id, [this](uint32_t pid){return peer_create(pid);}} |
a device tree hosted by the service: the driver served under its product id as a kernel driver serves its client - a client's IOCTL lands in ioctl(), every arrival and removal is the broadcast
The driver answers its log, its devices (their puuids, dx::ioctl::service::devices), a device created or destroyed where its bus makes devices, and an echo; a product's driver answers its own IOCTLs ahead of these. Every client is untrusted: a request is its checked bytes alone.
|
inline |
|
inlineoverrideprotected |
|
inlineoverridenoexcept |
|
inlineprotectedvirtual |
|
inlineoverride |
|
inlineprotectedvirtual |
the peer of a connection: a product's driver makes its own
|
inlineoverrideprotectednoexcept |
|
protected |
| dx::service::driver::app* dx::service::driver<driver_t>::this |