<dev/devm.h>¶
devsvc protocol: asking rootsvc's device service for a device by compatible string.
#include <dev/devm.h>
Constants¶
| Name | Value | Description |
|---|---|---|
DEVM_COMPAT_MAX |
32 |
Unused. |
DEVM_MAX_COMPAT |
8 |
Most compatible strings one request may carry. |
Enumerations¶
DevmRequestType¶
devsvc commands.
| Name | Value | Description |
|---|---|---|
DEVM_REQUEST |
0 |
Ask for the first device matching one of a list of compatible strings. |
Structures¶
DevmRequest¶
A request as devsvc unpacks it. On the wire it is cmd and count as two 32-bit words, then count NUL-terminated strings back to back.
| Field | Type | Description |
|---|---|---|
cmd |
DevmRequestType |
DEVM_REQUEST. |
count |
uint32_t |
Number of strings, 1 to DEVM_MAX_COMPAT. |
strings |
const char * |
The strings, pointing into the message buffer. |