This article mainly introduces how to read linux driver files. In daily operations, I believe many people have doubts about how to read linux driver files. The editor consulted various materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about how to read the linux driver file! Next, please follow the editor to learn together!
The location of the linux driver file: 1. The key driver is in the kernal\drivers\input\keyboard and kernal\drivers\char folders; 2. The network card driver is in the kernal\drivers\net\ folder; 3. The serial driver is in the kernal\drivers\serial\ folder; 4. The real-time clock RTC driver is in the kernal\drivers\rtc\ folder.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
The directory that needs to be checked after the driver is loaded:
/proc/devices: View characters Device number
/sys/class/gpio : export/unexport gpio
/sys/bus/i2c/devices : View all devices under the i2c bus
Linux's own driver is stored in the kernel source directory. The specific directory is as follows
Keyboard driver
kernal\drivers\input\keyboard
kernal\drivers\ char
LED driver
kernal\drivers\char\led.c
kernal\drivers\leds
Network card driver
kernal\drivers\net\
serial driver
kernal\drivers\ serial\
Real time clock RTC driver
kernal\drivers\rtc\
Touch screen driver
kernal\drivers\input\touchscreen\
YAFFS file system source code directory
kernal\fs\yaffs2
USB mouse, keyboard driver
kernal\drivers\hid
SD/MMC card driver directory
kernal\drivers\mmc\
Nand flash Driver
kernal\drivers\mtd\nand
audio driver directory
kernal\sound\oss\ud
kernal\drivers\
LCD Driver
kernal\drivers\video\
U Disk support driver
kernal\drivers\usb\storage
Vimicro USB camera driver< /p>
kernal\drivers\media\gspca
At this point, the study on how to look at linux driver files is over. Hope to solve your doubts. The combination of theory and practice can better help you learn, go try it! If you want to continue to learn more relevant knowledge, please continue to pay attention to the Yisuyun website, and the editor will continue to work hard to bring you more practical articles!
Copyright Description:No reproduction without permission。
Knowledge sharing community for developers。
Let more developers benefit from it。
Help developers share knowledge through the Internet。
Follow us