More Rust Code Readied For Linux 6.4

Written by Michael Larabel in Linux Kernel on 29 April 2023 at 08:14 AM EDT. 19 Comments
LINUX KERNEL
On Friday the Rust for Linux lead developer Miguel Ojeda submitted a pull request of new Rust feature code for the Linux 6.4 kernel.

New Rust code for Linux 6.4 includes the introduction of the pin-init API, which is for dealing with safe pinned initialization and allows reducing the amount of "unsafe" Rust code within the kernel around data structures needing a stable address. The new pin-init API in turn will also be used by other upcoming Rust for Linux abstractions.

Rust code for Linux
Rust example code for the new pin-init API with Linux 6.4.


The Rust code with Linux 6.4 also adds new types and traits to the sync module, a new ioctl module with new "_IOC*" const functions equivalent to the C macros, a new uAPI crate to be accessible by drivers directly, and other improvements to existing modules/crates.

More details on the Rust feature code being added for Linux 6.4 can be found via this pull request.
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