dev.avyos.uevent

api/uevent/api.json

Kernel uevent bridge for device discovery and hotplug notifications.

Service

FieldValue
Namedev.avyos.uevent
Packageuevent
Service ID0x00000030

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.

FieldTypeDescription
Action string -
Subsystem string -
DevPath string -
DevName string -
DevType string -
Major int -
Minor int -

DeviceInfo

Snapshot of a device entry known to the system.

FieldTypeDescription
DevPath string -
DevName string -
Subsystem string -
DevType string -
Driver string -
Major int -
Minor int -

DeviceList

Collection of discovered device entries.

FieldTypeDescription
Devices []DeviceInfo -

TriggerRequest

Request payload to re-trigger scan/events for a subsystem.

FieldTypeDescription
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.