|
|
Subscribe / Log in / New account

Rust support hits linux-next

Rust support hits linux-next

Posted Mar 20, 2021 13:16 UTC (Sat) by atnot (subscriber, #124910)
In reply to: Rust support hits linux-next by willy
Parent article: Rust support hits linux-next

I think this is intended to be an example driver, not a proof of concept driver. So it's main purpose is intended to be as a documentation reference. Requiring people to understand NVMe is kind of unhelpful for that purpose.


to post comments

Rust support hits linux-next

Posted Mar 20, 2021 14:00 UTC (Sat) by willy (subscriber, #9762) [Link]

NVMe is pretty simple. The original driver was less than 2000 lines. It's only so complicated in the kernel now because some idiots decided to make the same driver support NVMoF instead of adding a separate driver for it.

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.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds