Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1581486
| From | Greg KH <gregkh@linuxfoundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] uio: add UIO_MEM_CUSTOM support |
| Date | 2017-02-15 18:20 +0100 |
| Message-ID | <tbbpm-2OF-39@gated-at.bofh.it> (permalink) |
| References | <tbbpm-2OF-41@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Feb 15, 2017 at 12:43:06PM +0800, lixiubo@cmss.chinamobile.com wrote: > From: Xiubo Li <lixiubo@cmss.chinamobile.com> > > This will allow UIO based drivers, like TCMU, have opportunities to > implement their own mmap magics. > > Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com> > --- > drivers/uio/uio.c | 2 ++ > include/linux/uio_driver.h | 1 + > 2 files changed, 3 insertions(+) > > diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c > index fba021f..6ca0ae0 100644 > --- a/drivers/uio/uio.c > +++ b/drivers/uio/uio.c > @@ -708,6 +708,8 @@ static int uio_mmap(struct file *filep, struct vm_area_struct *vma) > case UIO_MEM_LOGICAL: > case UIO_MEM_VIRTUAL: > return uio_mmap_logical(vma); > + case UIO_MEM_CUSTOM: > + return 0; How does this help? Can you provide an update to the documentation in Documentation/driver-api/uio-howto.rst to show how to use this? thanks, greg k-h
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH] uio: add UIO_MEM_CUSTOM support Greg KH <gregkh@linuxfoundation.org> - 2017-02-15 18:20 +0100
Re: [PATCH] uio: add UIO_MEM_CUSTOM support Xiubo Li <lixiubo@cmss.chinamobile.com> - 2017-02-16 02:40 +0100
Re: [PATCH] uio: add UIO_MEM_CUSTOM support Andy Grover <agrover@redhat.com> - 2017-02-16 06:10 +0100
Re: [PATCH] uio: add UIO_MEM_CUSTOM support Xiubo Li <lixiubo@cmss.chinamobile.com> - 2017-02-16 06:40 +0100
Re: [PATCH] uio: add UIO_MEM_CUSTOM support Xiubo Li <lixiubo@cmss.chinamobile.com> - 2017-02-16 08:00 +0100
csiph-web