Linux 6.13 Rust Support Allowing For In-Place Modules

Written by Michael Larabel in Linux Kernel on 11 November 2024 at 06:52 AM EST. 4 Comments
LINUX KERNEL
Set to be merged during the upcoming Linux 6.13 merge window is support with the Rust programming language infrastructure for allowing in-place kernel modules.

This addition by Rust Linux engineer Wedson Almeida Filho of Microsoft allows for "InPlaceModule" as a means of initializing Rust modules in-place with pinned memory.

This Rust in-place module support is for in turn allowing pinned types to be used within the Rust kernel modules without any extra allocations. This Rust InPlaceModule support is important for features like mutexes, spinlocks, driver registrations, and similar functionality.

Rust InPlaceModule


This Rust InPlaceModule support is part of a larger patch series working through various device driver, PCI driver, and platform abstractions needed by forthcoming Rust kernel drivers such as the open-source NVIDIA "Nova" driver project out of Red Hat, among others.

Those wishing to learn more about the Rust in-place module support for the Linux kernel can see this patch queued up within Greg Kroah Hartman's char-misc.git char-misc-next branch ahead of the upcoming Linux 6.13 merge window.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week