

Linux Kernel Programming Part 2 - Char Device Drivers and Kernel Synchronization: Create user-kernel interfaces, work with peripheral I/O, and handle hardware interrupts (Paperback)
Key item features
Specs
- Book formatPaperback
- Fiction/nonfictionNon-Fiction
- GenreComputing & Internet
- Pages452
- SubgenreComputers
- Series titleLinux Kernel Programming
- Free shipping
Free 30-day returns
How do you want your item?
About this item
Product details
Discover how to write high-quality character driver code, interface with userspace, work with chip memory, and gain an in-depth understanding of working with hardware interrupts and kernel synchronization
Key Features:
- Delve into hardware interrupt handling, threaded IRQs, tasklets, softirqs, and understand which to use when
- Explore powerful techniques to perform user-kernel interfacing, peripheral I/O and use kernel mechanisms
- Work with key kernel synchronization primitives to solve kernel concurrency issues
Book Description:
Linux Kernel Programming Part 2 - Char Device Drivers and Kernel Synchronization is an ideal companion guide to the Linux Kernel Programming book. This book provides a comprehensive introduction for those new to Linux device driver development and will have you up and running with writing misc class character device driver code (on the 5.4 LTS Linux kernel) in next to no time.
You'll begin by learning how to write a simple and complete misc class character driver before interfacing your driver with user-mode processes via procfs, sysfs, debugfs, netlink sockets, and ioctl. You'll then find out how to work with hardware I/O memory. The book covers working with hardware interrupts in depth and helps you understand interrupt request (IRQ) allocation, threaded IRQ handlers, tasklets, and softirqs. You'll also explore the practical usage of useful kernel mechanisms, setting up delays, timers, kernel threads, and workqueues. Finally, you'll discover how to deal with the complexity of kernel synchronization with locking technologies (mutexes, spinlocks, and atomic/refcount operators), including more advanced topics such as cache effects, a primer on lock-free techniques, deadlock avoidance (with lockdep), and kernel lock debugging techniques.
By the end of this Linux kernel book, you'll have learned the fundamentals of writing Linux character device driver code for real-world projects and products.
What You Will Learn:
- Get to grips with the basics of the modern Linux Device Model (LDM)
- Write a simple yet complete misc class character device driver
- Perform user-kernel interfacing using popular methods
- Understand and handle hardware interrupts confidently
- Perform I/O on peripheral hardware chip memory
- Explore kernel APIs to work with delays, timers, kthreads, and workqueues
- Understand kernel concurrency issues
- Work with key kernel synchronization primitives and discover how to detect and avoid deadlock
Who this book is for:
An understanding of the topics covered in the Linux Kernel Programming book is highly recommended to make the most of this book. This book is for Linux programmers beginning to find their way with device driver development. Linux device driver developers looking to overcome frequent and common kernel/driver development issues, as well as perform common driver tasks such as user-kernel interfaces, performing peripheral I/O, handling hardware interrupts, and dealing with concurrency will benefit from this book. A basic understanding of Linux kernel internals (and common APIs), kernel module development, and C programming is required.
Specifications
Book format
Fiction/nonfiction
Genre
Pages
Warranty
Warranty information
Similar items you might like
Based on what customers bought
Computing with the Raspberry Pi: Command Line and GUI Linux, (Paperback) $35.85 Was $39.99
$3585current price $35.85, Was $39.99$39.99Computing with the Raspberry Pi: Command Line and GUI Linux, (Paperback)
Linux Kernel Programming - Second Edition: A comprehensive and practical guide to kernel internals, writing modules, and, (Paperback) $35.52
$3552current price $35.52Linux Kernel Programming - Second Edition: A comprehensive and practical guide to kernel internals, writing modules, and, (Paperback)
Red Hat Enterprise Linux 9 for SysAdmins: A technical guide for building secure production systems using RHEL 9 administ, (Paperback) $46.65
$4665current price $46.65Red Hat Enterprise Linux 9 for SysAdmins: A technical guide for building secure production systems using RHEL 9 administ, (Paperback)
Maker Innovations Essentials of Arduino(tm) Boards Programming: Step-By-Step Guide to Master Arduino Boards Hardware and Software, (Paperback) $38.24
$3824current price $38.24Maker Innovations Essentials of Arduino(tm) Boards Programming: Step-By-Step Guide to Master Arduino Boards Hardware and Software, (Paperback)
Linux Device Drivers Development: Develop customized drivers for embedded Linux, (Paperback) $64.60
$6460current price $64.60Linux Device Drivers Development: Develop customized drivers for embedded Linux, (Paperback)
Mastering Proxmox - Third Edition: Build virtualized environments using the Proxmox VE hypervisor (Paperback) $42.27
$4227current price $42.27Mastering Proxmox - Third Edition: Build virtualized environments using the Proxmox VE hypervisor (Paperback)
Linux Kernel Programming: Developing kernel architecture and device drivers for character, block, USB, and network inter, (Paperback) $46.65
$4665current price $46.65Linux Kernel Programming: Developing kernel architecture and device drivers for character, block, USB, and network inter, (Paperback)
Hands-On Booting: Learn the Boot Process of Linux, Windows, and UNIX, (Paperback) $24.00
$2400current price $24.00Hands-On Booting: Learn the Boot Process of Linux, Windows, and UNIX, (Paperback)
Pre-Owned Systemverilog for Verification: A Guide to Learning the Testbench Language Features (Hardcover) 0387270361 9780387270364 $38.08
2 optionsAvailable in additional 2 options$3808current price $38.08Pre-Owned Systemverilog for Verification: A Guide to Learning the Testbench Language Features (Hardcover) 0387270361 9780387270364
Supercomputers for Linux Sysadmins: Managing Modern HPC Clusters and Supercomputers from Software to Hardware, (Paperback) $29.46
$2946current price $29.46Supercomputers for Linux Sysadmins: Managing Modern HPC Clusters and Supercomputers from Software to Hardware, (Paperback)
Hands-On RTOS with Microcontrollers - Second Edition: Create high-performance, real-time embedded systems using FreeRTOS, (Paperback) $31.99
$3199current price $31.99Hands-On RTOS with Microcontrollers - Second Edition: Create high-performance, real-time embedded systems using FreeRTOS, (Paperback)
Arm-Based Microcontroller Multitasking Projects: Using the Freertos Multitasking Kernel, (Paperback) $83.14
$8314current price $83.14Arm-Based Microcontroller Multitasking Projects: Using the Freertos Multitasking Kernel, (Paperback)
Mastering Linux Device Driver Development: Write custom device drivers to support computer peripherals in Linux operatin, (Paperback) $56.01
$5601current price $56.01Mastering Linux Device Driver Development: Write custom device drivers to support computer peripherals in Linux operatin, (Paperback)
Linux Kernel Debugging: Leverage proven tools and advanced techniques to effectively debug Linux kernels and kernel modu, (Paperback) $44.85
$4485current price $44.85Linux Kernel Debugging: Leverage proven tools and advanced techniques to effectively debug Linux kernels and kernel modu, (Paperback)
Systemd for Linux Sysadmins: All You Need to Know about the Systemd Suite for Linux Users, (Paperback) $38.09
$3809current price $38.09Systemd for Linux Sysadmins: All You Need to Know about the Systemd Suite for Linux Users, (Paperback)
GPU Programming with C and CUDA: Uncover effective techniques for writing efficient GPU-parallel C applications, (Paperback) $33.74
$3374current price $33.74GPU Programming with C and CUDA: Uncover effective techniques for writing efficient GPU-parallel C applications, (Paperback)
Assembly Language Reimagined: Programming the Intel X64 Microprocessor in Linux, (Paperback) $40.79
$4079current price $40.79Assembly Language Reimagined: Programming the Intel X64 Microprocessor in Linux, (Paperback)
Practical GPU Programming: High-performance computing with CUDA, CuPy, and Python on modern GPUs, (Paperback) $29.99
$2999current price $29.99Practical GPU Programming: High-performance computing with CUDA, CuPy, and Python on modern GPUs, (Paperback)
Mastering Assembly Programming: From instruction set to kernel module with Intel processor, (Paperback) $38.83
$3883current price $38.83Mastering Assembly Programming: From instruction set to kernel module with Intel processor, (Paperback)

