All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: lixiubo@cmss.chinamobile.com
Cc: agrover@redhat.com, mchristi@redhat.com, namei.unix@gmail.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] uio: add UIO_MEM_CUSTOM support
Date: Wed, 15 Feb 2017 09:19:37 -0800	[thread overview]
Message-ID: <20170215171937.GA4705@kroah.com> (raw)
In-Reply-To: <1487133786-25545-1-git-send-email-lixiubo@cmss.chinamobile.com>

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

       reply	other threads:[~2017-02-15 17:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1487133786-25545-1-git-send-email-lixiubo@cmss.chinamobile.com>
2017-02-15 17:19 ` Greg KH [this message]
2017-02-16  1:34   ` [PATCH] uio: add UIO_MEM_CUSTOM support Xiubo Li
2017-02-16  5:01     ` Andy Grover
2017-02-16  5:33       ` Xiubo Li
2017-02-16  6:49       ` Xiubo Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170215171937.GA4705@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=agrover@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lixiubo@cmss.chinamobile.com \
    --cc=mchristi@redhat.com \
    --cc=namei.unix@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.