On top of the Rust driver core changes and other Rust code for Linux 6.19, the modules infrastructure for this new kernel version is also bringing some new code. Surprisingly, it’s taken until now for Rust kernel modules/drivers to support module parameters as is common practice for passing different options when booting the kernel or manually loading kernel drivers with extra non-default options.
The headline change of the modules update for Linux 6.19 is now supporting Rust module parameters. The Git merge elaborates on the change:
“Add Rust module parameter support, enabling Rust kernel modules to declare and use module parameters. The rust_minimal sample module demonstrates this, and the rust null block driver will be the first to use it in the next cycle. This also adds the Rust module files under the modules subsystem as agreed between the Rust and modules maintainers.”
The infrastructure is now in place and some basic Rust code demonstrating module parameter use:
A small but necessary feature for Rust kernel drivers to eventually reach feature parity to C kernel drivers.
