2021-02-09 16:07:48

by Richard Weinberger

[permalink] [raw]
Subject: Re: [fuse-devel] [PATCH 0/8] MUSE: Userspace backed MTD v3

----- Ursprüngliche Mail -----
> for example, many existing video applications use mmap() to map the
> device memory to userspace memory. Adding support for mmap() to CUSE
> would allow these apps to work without any modifications with CUSE-based
> device drivers other than kernel drivers.

So you want to access device memory via CUSE?
We have plenty of mechanisms in Linux to allow userspace accessing device memory.
E.g. /dev/mem, UIO, VFIO.

A simple (but ugly!) approach would be redirecting mmap() requests on CUSE devices to /dev/mem.
hmm?

Thanks,
//richard


2021-02-10 07:29:39

by Luca Risolia

[permalink] [raw]
Subject: Re: [fuse-devel] [PATCH 0/8] MUSE: Userspace backed MTD v3

> A simple (but ugly!) approach would be redirecting mmap() requests on CUSE devices to /dev/mem.
> hmm?

what requests are you talking about given that at the moment the CUSE
client interface (cuse_lowlevel_ops) does not expose mmap?