Re: [PATCH 09/13] Samples: Rust examples

From: Matthew Wilcox
Date: Wed Apr 14 2021 - 15:50:16 EST


On Wed, Apr 14, 2021 at 09:42:26PM +0200, Miguel Ojeda wrote:
> On Wed, Apr 14, 2021 at 9:34 PM Linus Torvalds
> <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> >
> > Honestly, I'd like to see a real example. This is fine for testing,
> > but I'd like to see something a bit more real, and a bit less special
> > than the Android "binder" WIP that comes a few patches later.
> >
> > Would there be some kind of real driver or something that people could
> > use as a example of a real piece of code that actually does something
> > meaningful?
>
> Yeah, we are planning to write a couple of drivers that talk to actual
> hardware. Not sure which ones we will do, but we will have them
> written.

I'd suggest NVMe as a target. It's readily available, both as real
hardware and in (eg) qemu. The spec is freely available, and most devices
come pretty close to conforming to the spec until you start to push hard
at the edges. Also then you can do performance tests and see where you
might want to focus performance efforts.