![]() Printk(KERN_INFO "Product = %s", bus->root_hub->product) Printk(KERN_INFO "Manu = %s", bus->root_hub->manufacturer) printk(KERN_INFO "Manu = %s", bus->root_hub->descriptor.iManufacturer) Printk(KERN_INFO "Serial Number = %x", bus->root_hub->descriptor.iSerialNumber) ![]() Printk(KERN_INFO "Product ID = %x", bus->root_hub->descriptor.idProduct) ![]() Printk(KERN_INFO "Vendor ID = %x", bus->root_hub->descriptor.idVendor) List_for_each_entry(bus, &usb_bus_list, bus_list) The answer to the question suggested using the following code: struct usb_device udev I have looked at this question but it was asked six years ago. I am currently trying to list all usb devices that are connected to a Linux system, the code will be running in the kernel, as an LSM.
0 Comments
Leave a Reply. |