![]() ![]() Setting up the software – distribution and packages.This chapter will take us through the following topics, which will help us set up our environment: Hence, this book gives you many hands-on experiments and kernel code examples that you can and indeed must try out yourself this will greatly aid in your making real progress and deeply learning and understanding various aspects of Linux kernel and driver development. The best way to learn something is to do so empirically – not taking anyone's word on anything at all, but trying it out and experiencing it for yourself. We will also clone this book's code repository on GitHub, and learn about a few useful projects that will help along this journey. We will install a recent Linux distribution, preferably as a Virtual Machine ( VM), and set it up to include all the required software packages. This chapter will teach you exactly how to do this and get started. ![]() To get the most out of this book, it is very important that you first set up the workspace environment that we will be using throughout the book. Hello, and welcome to this book on learning Linux kernel development. You’ll also benefit from more advanced material on cache effects, a primer on lock-free techniques within the kernel, deadlock avoidance (with lockdep), and kernel lock debugging techniques.īy the end of this kernel book, you’ll have a detailed understanding of the fundamentals of writing Linux kernel module code for real-world projects and products. ![]() The following chapters will cover key kernel internals topics including Linux kernel architecture, memory management, and CPU scheduling.ĭuring the course of this book, you’ll delve into the fairly complex topic of concurrency within the kernel, understand the issues it can cause, and learn how they can be addressed with various locking technologies (mutexes, spinlocks, atomic, and refcount operators). Next, you’ll write your first kernel module using the powerful Loadable Kernel Module (LKM) framework. You’ll start the journey by learning how to build the kernel from the source. By working with the 5.4 LTS kernel throughout the book, you can be confident that your knowledge will continue to be valid for years to come. This book uses the latest 5.4 Long-Term Support (LTS) Linux kernel, which will be maintained from November 2019 through to December 2025. This easy-to-follow guide will have you up and running with writing kernel code in next-to-no time. The instructor may choose to cover or not cover them depending on classroom experience and time constraints.Linux Kernel Programming is a comprehensive introduction for those new to Linux kernel and module development. They contain either background reference material, specialized topics, or advanced subjects. ** These sections may be considered in part or in whole as optional. How the Kernel Installs Signal Handlers Allocating User Memory and Address Spaces Systems With and Without MMU and the TLB Priority Inversion and Priority Inheritance ** Labs Process Limits and Capabilities ** Executing User-Space Processes From Within the Kernel SMP Algorithms - Scheduling, Locking, etc. Concurrency and Synchronization Methods Labs Race Conditions and Synchronization Methods Mixing User- and Kernel-Space Headers ** Writing Portable Code, CPU, 32/64-bit, Endianness Using Generic Kernel Routines and Methods Labs Kernel Style and General Considerations Installation and Layout of the Kernel Source Kernel Startup Kernel Configuration and Compilation Transferring Data between User and Kernel Spaces Error Numbers and Getting Kernel Output User-Space and Kernel-Space Kernel Programming Preview Be Patient, Develop Long Term Relationships, Be Helpful Kernel Architecture I Leave Your Ego at the Door: Don't Be Thin-Skinned Contribute Incremental Bits, Not Large Code Dumps Identify Maintainers and Their Work Flows and Methods Figure Out What Itch You Want to Scratch Stay Close to Mainline for Security and Quality Know Where the Code is Coming From: DCO and CLA Things Change in Linux and Open Source Projects Using and Downloading a Virtual Machine Certification Programs and Digital Badging Copyright and No Confidential Information ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |