Rust support hits linux-next
Rust support hits linux-next
Posted Mar 19, 2021 16:12 UTC (Fri) by darwi (subscriber, #131202)Parent article: Rust support hits linux-next
There is also an example character driver at drivers/char/rust_example.rs
A lot of standard kernel abstractions and APIs are not yet "rustified" at all.
Having a character driver is also not the most encouraging of examples: adding new character drivers to the kernel is really frowned upon — real drivers need way much more functionality than just FileOperations, a Mutex, and an (incomplete) SpinLock API. Nonetheless, the merge to -next is of course a very encouraging sign.
Posted Mar 20, 2021 0:04 UTC (Sat)
by ndesaulniers (subscriber, #110768)
[Link]
Posted Mar 20, 2021 2:33 UTC (Sat)
by willy (subscriber, #9762)
[Link] (2 responses)
Maybe they're still working on it!
Posted Mar 20, 2021 13:16 UTC (Sat)
by atnot (subscriber, #124910)
[Link] (1 responses)
Posted Mar 20, 2021 14:00 UTC (Sat)
by willy (subscriber, #9762)
[Link]
The advantage of writing an actual driver for hardware that really exists is that you figure out what's missing from the kernel Rust API -- interrupts, PCI, DMA, locks that need to be shared with code written in C. That kind of thing.
Rust support hits linux-next
Rust support hits linux-next
Rust support hits linux-next
Rust support hits linux-next