From the course: Linux Device Drivers

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Solution: Work with loadable modules

Solution: Work with loadable modules - Linux Tutorial

From the course: Linux Device Drivers

Start my 1-month free trial

Solution: Work with loadable modules

(funky electronic music) - [Instructor] Let's talk about my solutions for the challenges that we just posed. Number one, can ethernet driver be a loadable kernel module? Well, yes, it can if it's not needed as part of the boot process. Just like any other decision of whether something can be dynamically loaded or statically built into the kernel, the decision has to do with whether it's needed during the boot process. With ethernet drivers, it's actually very common for them to be dynamically loadable kernel modules. But if you are booting your system with NFS as the initial file system, NFS root, and that's really pretty handy and pretty common in embedded Linux development efforts, in that case, the ethernet driver must be statically linked. So it's not the fact that it's an ethernet driver or not, just like everything else, it's the fact of how it's being used that determines whether it could be statically or…

Contents