Skip to content

Add serial devices to the resources API #2669

@stgraber

Description

@stgraber

Is there an existing issue for this?

  • There is no existing issue for this feature

What are you currently unable to do

The resources API currently show most block, USB and PCI devices which is useful for passthrough into Incus instances. But there are also a bunch of devices that just expose a serial interface (ttyUSB/ttyACM).

For those we should add a Serial section to the resources API and build it from the data we can grab at /dev/serial/by-id and /dev/serial/by-path to basically provide:

  • ID (ttyACM0, ttyUSB0)
  • Device (major:minor)
  • Device ID (/dev/serial/by-id/VALUE)
  • Device Path (/dev/serial/by-path/VALUE)

What do you think would need to be added

No response

Metadata

Metadata

Assignees

Labels

EasyGood for new contributors

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions