Recently, Miguel Ojeda released the latest patch series, the sixth patch of "Rust for the Linux kernel", which continues to bring Rust language support to the Linux kernel.
In the v6 patch, toolchain support has been updated for Rust 1.60, and support for running documentation tests in the kernel has been improved, along with other Rust infrastructure improvements.
The start of network support can be seen in this release, for example the "net" module supports types such as Namespace, SkBuff, Ipv4Addr, SocketAddrV4, TcpListener, etc. There is also the start of "async" support for asynchronous kernel programming.
Currently, this version already allows asynchronous TCP socket code. The new Rust code also adds support for network packet filters and other new features.
Lastly, Rust support is still considered "experimental" from this release's series of patches, but it's performing well enough that kernel developers can start developing Rust abstractions for other kernel subsystems, and update them when needed. Many drivers ported to Rust.
As of Miguel Ojeda's patch release, the Rust kernel work totals 379,000 lines of code, including infrastructure, subsystem abstractions started so far, sample code, and additional examples of converting some Android and GPIO driver code to Rust.
Original patch email:
https://lore.kernel.org/lkml/20220507052451.12890-1-ojeda@kernel.org/
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。