Write kernel code with rust?

Song Baohua 2021-10-14 04:50:00

We are not sure RUST The final trend in the kernel , How many people are willing to move , But at least Linus Willing to test the water .

Wedson Almeida Filho in the light of ARM PL061 GPIO drive , Translated a RUST edition , This is also a RUST Real driving cases . The code is long , You can read in detail :


Here we only extract a small part of the comparison , such as C Version interrupt service program :


Corresponding RUST Interrupt service routine :


such as C Version of amba_driver:


RUST Version of amba_driver:


You are willing to move to RUST Write kernel code ?

Please bring the original link to reprint ,thank
Similar articles