简体   繁体   中英

Adding info to devices in linux for libudev

Hi how can i add additional info for my plugged device. eg /dev/ttyUSB0

say:

Vendor: Device Type: Subsystem:

More importantly i want to add the device type. how can i do this or is this even possible?.

You can't set device properties using udev. It only gets devices properties and can do actions based on them (like if serial nr is xxxx then set it as eth0).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM