News: 0001508360

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

3K Lines Of New Rust Infrastructure Code Head Into Linux 6.13

([Linux Kernel] 5 Hours Ago Rust For Linux 6.13)


Overnight the Rust for Linux lead developer Miguel Ojeda submitted the big set of Rust infrastructure/toolchain updates for the [1]Linux 6.13 holiday kernel.

This big Rust pull request complements other Rust code already merged for Linux 6.13 like the [2]Rust file abstractions and [3]Rust in-place module support . With this main Rust pull request there is a lot of linting changes/improvements, such as some new safety-related linting checks. The kernel is also beginning to make use of the recently stabilized "#[expect]" feature that makes the compiler warn if an expected warning is not emitted.

The Rust updates for Linux 6.13 also include a new "FFI" crate to contain their custom C FFI type mappings, a new "alloc" module with generic kernel allocator support within their kernel crate, global lock support in the sync module, and various documentation updates.

The full list of Rust changes for Linux 6.13, which contain 3.17k lines of new code and 897 lines removed, can be found via [4]this pull request .

Separately, Christian Brauner sent in the [5]this pull request today with the Rust language bindings for the PID namespaces. These Rust bindings in turn are needed by various Rust kernel drivers that are forthcoming.



[1] https://www.phoronix.com/search/Linux+6.13

[2] https://www.phoronix.com/news/Linux-6.13-Rust-File-Abstract

[3] https://www.phoronix.com/news/Linux-6.13-Rust-InPlaceModule

[4] https://lore.kernel.org/lkml/20241126022500.718070-1-ojeda@kernel.org/

[5] https://lore.kernel.org/lkml/20241126-vfs-rust-3af24a3dd7c0@brauner/



MillionToOne

Vorpal

Volta

uid313

Gusar

edxposed

intelfx

Old Grouch

ssokolow

The smallest worm will turn being trodden on.
-- William Shakespeare, "Henry VI"