Linux Programming

I am new to Linux kernel programming. I want to develop a program for reading information about a USB drive, such as manufacturer name, capacity, etc. I know about descriptors and their attributes. But I don’t understand how to list the USB drives connected to the system. I am looking for a function that initiates a connection between the kernel and the USB port. How is this possible?

+5
source share
2 answers

You do not need to program the kernel as such - in fact, to read device information, you do not even need a device driver.

2.6 USB , - - http://www.linux-usb.org/

USB, . Linux

+4

? lsusb, " USB-, ​​ ", ... USB-.

lsusb , , http://www.google.com/codesearch#VKTEFMx6wp0/lsusb.c

USB-, , USB- USB-.

+3

All Articles