201-450 practice question 7 of 25

How is the source code for the main Linux kernel modules distributed?

Full set: 161 questions
Answer options
A: It is included with the Linux kernel source code. Correct answer
B: The kernel modules are downloaded on demand as they are used during compilation.
C: The kernel modules have their own release cycle and can be maintained separately from the Linux kernel source.
D: It is provided as a separate download alongside the Linux kernel source code of the same version.
Correct Answer:
A. It is included with the Linux kernel source code.
Explanation

The source code for the main ("in-tree") Linux kernel modules is an integral part of the Linux kernel source tree. It is developed, maintained, and versioned along with the core kernel code. When you download the kernel source from an official repository like kernel.org, the source for thousands of drivers and kernel subsystems is included within directories such as drivers/, fs/, and net/.

Why Incorrect

B: The entire kernel source tree, including all in-tree module code, must be downloaded before the compilation process can begin. C: This describes "out-of-tree" or third-party modules, which are maintained independently. Main kernel modules follow the kernel's release cycle. D: The module source code is not a separate package; it is fully integrated into the single, primary kernel source tarball for any given version.

References

- The Linux Kernel Documentation, Documentation/kbuild/modules.rst. This document describes how to build external modules and implicitly contrasts it with the integrated build process for in-tree modules.

- Corbet, J., Rubini, A., & Kroah-Hartman, G. (2005). Linux Device Drivers, 3rd Edition. O'Reilly Media. Chapter 2, "Building and Running Modules", discusses how module source is part of the kernel tree.

- Torvalds, L., et al. (2023). The Linux Kernel Source Tree. Retrieved from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/. The directory structure (drivers/, net/, etc.) confirms this.

Scroll to Top