|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
a device the service hosts, served under <product id>/<puuid> as a kernel driver serves its device: a peer per client connection, its IOCTLs landing in ioctl() More...
#include <dx_service_device.h>
Classes | |
| class | peer |
| a client's connection to the device: what it asks the device answers, while the client stands the device stands More... | |
Public Member Functions | |
| void | conclude() noexcept override |
| void | launch() override |
Protected Member Functions | |
| 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 layer above makes its own | |
Protected Attributes | |
| service::server | server{std::string{this->driver.product_id}+ "/"+ this->puuid, [this](uint32_t pid){return peer_create(pid);}} |
a device the service hosts, served under <product id>/<puuid> as a kernel driver serves its device: a peer per client connection, its IOCTLs landing in ioctl()
A peer holds the device while its client stands; conclude() stops the server first, which destroys every peer before it returns - a caller holding the last other reference (map::driver::remove()) reaches the destructor within its own call, so a cleanup tied to the device's destruction (the registry preference's schedule_erase) completes there. The device answers its desc (dx::ioctl::service::desc); a layer above answers its own ahead.
|
inlineoverridenoexcept |
|
inlineprotectedvirtual |
Reimplemented in dx::service::stream::device< super_device_t >.
|
inlineoverride |
|
inlineprotectedvirtual |
the peer of a connection: a layer above makes its own
Reimplemented in dx::service::stream::device< super_device_t >.
|
protected |