Get the latest tech news

How to write Rust in the Linux kernel: part 3


The interfaces between C and Rust in the kernel have grown over time; any non-trivial Rust dri [...]

During the early planning phases, the project proposed adopting a rule that there should be a single, centralized set of Rust bindings for each subsystem, as explained in the kernel documentation. When asked to look over an early draft of this article, Benno Lossin warned that the current RCU support is " very barebones", but that the Rust developers plan to expand on it over time. This kind of safer interface is, of course, the ultimate purpose behind introducing Rust bindings into the kernel — to make it possible to write drivers where more errors can be caught at compile time.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Linux

Linux

Photo of linux kernel

linux kernel

Photo of Rust

Rust

Related news:

News photo

Bcachefs Lands More Fixes Ahead Of Linux 6.16-rc7

News photo

Linux and Secure Boot certificate expiration

News photo

Modular Interpreters and Visitors in Rust with Extensible Variants and CGP