Chapter 10. Adding Your Code to the Kernel

In this chapter

This section is divided into two major parts: “Traversing the Source” and “Writing the Code.”

Traversing the Source” walks through a device driver common to nearly all Linux systems, /dev/random, and shows how the kernel connects with it. During this overview we recap some of the inner workings of the kernel we previously described and show them in a more practical light.

Writing the Code” walks through building a device driver and delves into common situations that a developer will encounter when writing device drivers.

After those sections, we proceed to describe how you can debug ...

Get Linux® Kernel Primer, The: A Top-Down Approach for x86 and PowerPC Architectures now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.