• [$] How to write Rust in the kernel: part 2

    From LWN.net@86:200/23 to All on Sat Jun 28 06:40:08 2025


    In 2023, Fujita Tomonori

    wrote a Rust version of the existing driver for the
    Asix AX88796B embedded Ethernet controller. At slightly more than 100 lines, it's about as simple as a driver can be, and therefore is a useful touchstone for
    the differences between writing Rust and C in the kernel. Looking at the Rust syntax, types, and APIs used by the driver and contrasting them with the C version will help illustrate those differences.

    https://lwn.net/Articles/1025232/
    --- SBBSecho 3.28-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (86:200/23)