]> git.ipfire.org Git - thirdparty/linux.git/commit
Docs/driver-api/uio-howto: document mmap_prepare callback
authorDoehyun Baek <doehyunbaek@gmail.com>
Mon, 22 Jun 2026 18:18:21 +0000 (18:18 +0000)
committerJonathan Corbet <corbet@lwn.net>
Tue, 23 Jun 2026 20:33:38 +0000 (14:33 -0600)
commitde5c46373eb8148aa92c024cf30d26a6d495e278
treedec7921d0cfe63801cfeb05aea65cd26aee095b8
parentafb5a55498e121b1382f139512c8a3ea3de68e49
Docs/driver-api/uio-howto: document mmap_prepare callback

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.

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>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260622181821.1195257-1-doehyunbaek@gmail.com>
Documentation/driver-api/uio-howto.rst