Home > Article > Operation and Maintenance > In which folder are the linux driver files located?
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 "kernal\drivers\net\ " folder; 3. The serial port 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.
Common directories that need to be checked after the driver is loaded:
/proc/devices: Check the character device device number
/sys/class/gpio: export/unexport gpio
/sys/bus/i2c/devices: View all i2c bus Device
Linux’s own driver is stored in the kernel source code directory. The specific directory is as follows
Button Driver
kernal\drivers\input\keyboard
kernal\drivers\char
LED driver
##kernal\drivers\char\led.c
kernal\drivers\leds
kernal\drivers\net\
kernal\drivers\serial\
kernal\drivers\rtc\
##kernal\drivers\
Recommended learning: Linux video tutorial
The above is the detailed content of In which folder are the linux driver files located?. For more information, please follow other related articles on the PHP Chinese website!