From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,vbabka@kernel.org,skhan@linuxfoundation.org,ljs@kernel.org,gregkh@linuxfoundation.org,corbet@lwn.net,doehyunbaek@gmail.com,akpm@linux-foundation.org
Subject: + docs-driver-api-uio-howto-document-mmap_prepare-callback.patch added to mm-hotfixes-unstable branch
Date: Wed, 24 Jun 2026 17:36:28 -0700 [thread overview]
Message-ID: <20260625003629.197C01F000E9@smtp.kernel.org> (raw)
The patch titled
Subject: Docs/driver-api/uio-howto: document mmap_prepare callback
has been added to the -mm mm-hotfixes-unstable branch. Its filename is
docs-driver-api-uio-howto-document-mmap_prepare-callback.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/docs-driver-api-uio-howto-document-mmap_prepare-callback.patch
This patch will later appear in the mm-hotfixes-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Doehyun Baek <doehyunbaek@gmail.com>
Subject: Docs/driver-api/uio-howto: document mmap_prepare callback
Date: Mon, 22 Jun 2026 18:18:21 +0000
The UIO howto still documents an mmap callback in struct uio_info. That
field was replaced by mmap_prepare, which takes a struct vm_area_desc.
A UIO driver following the current howto no longer builds because struct
uio_info has no mmap member. Update the documented callback signature and
matching text to match the current API.
Link: https://lore.kernel.org/20260622181821.1195257-1-doehyunbaek@gmail.com
Fixes: 933f05f58ac6 ("uio: replace deprecated mmap hook with mmap_prepare in uio_info")
Signed-off-by: Doehyun Baek <doehyunbaek@gmail.com>
Reviewed-by: Lorenzo Stoakes <ljs@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
Documentation/driver-api/uio-howto.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/Documentation/driver-api/uio-howto.rst~docs-driver-api-uio-howto-document-mmap_prepare-callback
+++ a/Documentation/driver-api/uio-howto.rst
@@ -246,10 +246,10 @@ the members are required, others are opt
hardware interrupt number. The flags given here will be used in the
call to :c:func:`request_irq()`.
-- ``int (*mmap)(struct uio_info *info, struct vm_area_struct *vma)``:
+- ``int (*mmap_prepare)(struct uio_info *info, struct vm_area_desc *desc)``:
Optional. If you need a special :c:func:`mmap()`
function, you can set it here. If this pointer is not NULL, your
- :c:func:`mmap()` will be called instead of the built-in one.
+ ``mmap_prepare`` will be called instead of the built-in one.
- ``int (*open)(struct uio_info *info, struct inode *inode)``:
Optional. You might want to have your own :c:func:`open()`,
_
Patches currently in -mm which might be from doehyunbaek@gmail.com are
docs-driver-api-uio-howto-document-mmap_prepare-callback.patch
reply other threads:[~2026-06-25 0:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260625003629.197C01F000E9@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=corbet@lwn.net \
--cc=doehyunbaek@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=ljs@kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=vbabka@kernel.org \
/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.