A GPIO driver written in Rust has been proposed for the Linux kernel

In response to Linus Torvalds' comment that the sample driver included with the Linux kernel Rust language patch set is useless and does not solve real problems, a version of the PL061 GPIO driver rewritten in Rust has been proposed. A feature of the driver is that its implementation almost line by line repeats the existing GPIO driver in the C language. For developers who want to get acquainted with the creation of drivers in Rust, a line-by-line comparison has been prepared, which allows you to understand what constructs in Rust the C code is converted to.

Source: opennet.ru

Add a comment