From the course: Advanced Linux: The Linux Kernel

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Examine kernel driver source

Examine kernel driver source - Linux Tutorial

From the course: Advanced Linux: The Linux Kernel

Examine kernel driver source

- [Instructor] Let's briefly talk about Linux kernel source code underneath drivers. So if you do a list underneath the driver subdirectory, you'll see a lot and lots of sub directories and sub directories within sub directories and so forth. There are many, many drivers written for Linux. Linux is well-supported by lots of hardware. Some of the drivers aren't actually hardware drivers. They're pseudo drivers, like for devno, which we'll talk about in a second. Common hardware devices are ethernet devices and there's quite a few available for Linux. If you want to find out which driver your ethernet devices are using, you can first of all try ip addr to see the names of your interfaces, and then try ethtool -i name of an interface to see which driver as well as some other information goes with that interface. So remember, the device file dev null had major number one. It had a device driver. Well, that actually gets implemented in driver's char mem.c, along with the other, we'll call…

Contents