Sunday, 15 March 2015

linux - How to get USB device details in kernel programming? -



linux - How to get USB device details in kernel programming? -

i new kernel programming , have dev_t value of usb device.

i want details of device vendor id, product id, or other attribute vary device device. want in kernel space, , without loading programme external module.

i have came across libusb library, however, far know, used in user space. possible utilize libusb in kernel space also, requirement? if possible, how import , set-up libusb can compile kernel?

it improve write loadable kernel module task. every time find bug have compile module against kernel , load it. there defined framework in kernel usb, utilize apis provided kernel things looking for. except libusb user space library , there no point of using within kernel. in user space can access usb related info using procfs/sysfs also.

linux linux-kernel kernel linux-device-driver libusb

No comments:

Post a Comment