Rust for Linux Programming

    Cover of Rust for Linux Programming

    EPUB · English

    Price and availability

    EPUB eBookUS store

    $30.99

    Sign in to buy

    You’ll review your order and final price before payment.

    Download from your library after delivery. Protected eBooks need a compatible reading app.

    For personal use under the eBook licence.

    Territorial availability

    Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa

    Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.

    Format
    EPUB
    DRM
    Not stated by the publisher
    Language
    English
    Publisher
    Distributed via Draft2Digital
    Published
    15 May 2026
    ISBN
    9798235025080
    Subjects

    About this book

    What's really cool is this hands-on Rust book takes you inside the Linux kernel and gives you the power to reshape it. It's all about building working kernel subsystems from scratch, covering process management, memory allocation, virtual file systems, networking, device drivers, inter-process communication, and AI-powered inference, and all in Rust. When you're done, you'll have registered procfs and sysfs interfaces, written Netfilter hooks that classify packets with a neural network, constructed RAII wrappers for DMA buffers and interrupt handlers, and implemented a complete in-memory file system on the VFS layer.Each chapter adds new source files to the same module, so by the time you get to the last chapter, your codebase has grown to various kernel subsystems. This hands-on, trainer-led approach is designed for both those new to Rust and experienced Rust developers looking to get into kernel space. You'll get the skills, patterns and confidence to write top-notch kernel code that's just as fast and safe as its C equivalent. Key LearningsBuild and load kernel modules using Rust-for-Linux toolchainWrap unsafe C kernel APIs into safe RAII abstractionsManage kernel memory through page allocation, slab caches, and memory poolsImplement custom in-memory file system on VFS layerWrite Netfilter hooks to inspect, filter, and transmit network packetsRegister platform device drivers with safe MMIO and DMA wrappersHandle hardware interrupts using trait-based handlers with automatic deregistrationBuild kernel-space IPC with message queues, shared memory, and wait queuesRun fixed-point neural network inference inside kernel without floating pointApply trait-based extensibility patterns across every kernel subsystem Table of ContentWhy Rust for Linux Kernel?Thinking in Rust for Systems ProgrammingTalking to Kernel through System CallsManaging ProcessesRust-Powered Memory ManagementBuilding File Systems on VFSNetworking from Inside KernelWriting Device DriversSafe Inter-Process CommunicationBringing AI into Linux Kernel

    Bibliographic data © Gardners Books Ltd.