Chapter10.Adding Your Code to the Kernel


Chapter 10. Adding Your Code to the Kernel

In this chapter

  • 10.1 Traversing the Source 554

  • 10.2 Writing the Code 575

  • 10.3 Building and Debugging 590

  • Summary 591

  • Exercises 593

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 a device driver using the /proc system. Maybe that's the third side to a coin?




The Linux Kernel Primer. A Top-Down Approach for x86 and PowerPC Architectures
The Linux Kernel Primer. A Top-Down Approach for x86 and PowerPC Architectures
ISBN: 131181637
EAN: N/A
Year: 2005
Pages: 134

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net