dev.avyos.uevent
api/uevent/api.json
Kernel uevent bridge for device discovery and hotplug notifications.
Service
| Field | Value |
|---|---|
| Name | dev.avyos.uevent |
| Package | uevent |
| Service ID | 0x00000030 |
Kernel uevent bridge for device discovery and hotplug notifications.
Types
Empty
Empty payload used where no fields are required.
No fields.
DeviceEvent
Hotplug event payload reported by the uevent stream.
| Field | Type | Description |
|---|---|---|
Action |
string |
- |
Subsystem |
string |
- |
DevPath |
string |
- |
DevName |
string |
- |
DevType |
string |
- |
Major |
int |
- |
Minor |
int |
- |
DeviceInfo
Snapshot of a device entry known to the system.
| Field | Type | Description |
|---|---|---|
DevPath |
string |
- |
DevName |
string |
- |
Subsystem |
string |
- |
DevType |
string |
- |
Driver |
string |
- |
Major |
int |
- |
Minor |
int |
- |
DeviceList
Collection of discovered device entries.
| Field | Type | Description |
|---|---|---|
Devices |
[]DeviceInfo |
- |
TriggerRequest
Request payload to re-trigger scan/events for a subsystem.
| Field | Type | Description |
|---|---|---|
Subsystem |
string |
- |
Requests
ListDevices
0x0201
List currently known devices.
Input
Type: Empty
No input is required.
Output
Type: DeviceList
Returns all discovered devices.
GetDevice
0x0202
Query one device by identity fields in the request payload.
Input
Type: DeviceInfo
Provide identifying fields to match a device.
Output
Type: DeviceInfo
Returns the matched device information.
Trigger
0x0203
Trigger a uevent refresh for a subsystem.
Input
Type: TriggerRequest
Optional subsystem name to limit the trigger scope.
Output
Type: Empty
No payload is returned.
Events
DeviceAdded
0x0301
Published when a device is added.
Payload
Type: DeviceEvent
Contains the added device metadata.
DeviceRemoved
0x0302
Published when a device is removed.
Payload
Type: DeviceEvent
Contains the removed device metadata.
DeviceChanged
0x0303
Published when a device property changes.
Payload
Type: DeviceEvent
Contains updated device metadata.