ENGLISH

Understanding the Linux Kernel

Book information

Publisher
Inc, O'Reilly Media
Year
2007
ISBN
0596005652, 9780596005658, 9780596517380, 0596517386, 9780596554910, 0596554915
Language
english
Format
PDF
Filesize
4 MB (4461133 bytes)
Edition
3
Pages
942\944
Time added
2020-07-26 19:24:52

Description

In order to thoroughly understand what makes Linux tick and why it works so well on a wide variety of systems, you need to delve deep into the heart of the kernel. The kernel handles all interactions between the CPU and the external world, and determines which programs will share processor time, in what order. It manages limited memory so well that hundreds of processes can share the system efficiently, and expertly organizes data transfers so that the CPU isn't kept waiting any longer than necessary for the relatively slow disks. The third edition of Understanding the Linux Kernel takes you on.;Table of Contents; Preface; The Audience for This Book; Organization of the Material; Level of Description; Overview of the Book; Background Information; Conventions in This Book; How to Contact Us; Safari® Enabled; Acknowledgments; Introduction; Linux Versus Other Unix-Like Kernels; Hardware Dependency; Linux Versions; Basic Operating System Concepts; Multiuser Systems; Users and Groups; Processes; Kernel Architecture; An Overview of the Unix Filesystem; Files; Hard and Soft Links; File Types; File Descriptor and Inode; Access Rights and File Mode; File-Handling System Calls; Opening a file. Table of Contents Preface The Audience for This Book Organization of the Material Level of Description Overview of the Book Background Information Conventions in This Book How to Contact Us Safari® Enabled Acknowledgments Introduction Linux Versus Other Unix-Like Kernels Hardware Dependency Linux Versions Basic Operating System Concepts Multiuser Systems Users and Groups Processes Kernel Architecture An Overview of the Unix Filesystem Files Hard and Soft Links File Types File Descriptor and Inode Access Rights and File Mode File-Handling System Calls Opening a file. Accessing an opened fileClosing a file Renaming and deleting a file An Overview of Unix Kernels The Process/Kernel Model Process Implementation Reentrant Kernels Process Address Space Synchronization and Critical Regions Kernel preemption disabling Interrupt disabling Semaphores Spin locks Avoiding deadlocks Signals and Interprocess Communication Process Management Zombie processes Process groups and login sessions Memory Management Virtual memory Random access memory usage Kernel Memory Allocator Process virtual address space handling Caching Device Drivers. Memory AddressingMemory Addresses Segmentation in Hardware Segment Selectors and Segmentation Registers Segment Descriptors Fast Access to Segment Descriptors Segmentation Unit Segmentation in Linux The Linux GDT The Linux LDTs Paging in Hardware Regular Paging Extended Paging Hardware Protection Scheme An Example of Regular Paging The Physical Address Extension (PAE) Paging Mechanism Paging for 64-bit Architectures Hardware Cache Translation Lookaside Buffers (TLB) Paging in Linux The Linear Address Fields Page Table Handling Physical Memory Layout Process Page Tables. Kernel Page TablesProvisional kernel Page Tables Final kernel Page Table when RAM size is less than 896?MB Final kernel Page Table when RAM size is between 896?MB and 4096?MB Final kernel Page Table when RAM size is more than 4096?MB Fix-Mapped Linear Addresses Handling the Hardware Cache and the TLB Handling the hardware cache Handling the TLB Processes Processes, Lightweight Processes, and?Threads Process Descriptor Process State Identifying a Process Process descriptors handling Identifying the current process Doubly linked lists The process list. The lists of TASK_RUNNING processesRelationships Among Processes The pidhash table and chained lists How Processes Are Organized Wait queues Handling wait queues Process Resource Limits Process Switch Hardware Context Task State Segment The thread field Performing the Process Switch The switch_to macro The??_??_switch_to?(??)??function Saving and Loading the FPU, MMX, and XMM Registers Saving the FPU registers Loading the FPU registers Using the FPU, MMX, and SSE/SSE2 units in Kernel Mode Creating Processes The clone(??), fork(??), and vfork(??) System Calls.

Similar books