Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: docs: libv4l-introduction.rst: Fix function signature and link

v4l2_mmap returns a void*, also link to mmap instead of munmap

Signed-off-by: Daniel Lundberg Pedersen <dlp@qtec.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Daniel Lundberg Pedersen and committed by
Mauro Carvalho Chehab
5cd5f134 74869a88

+2 -2
+2 -2
Documentation/userspace-api/media/v4l/libv4l-introduction.rst
··· 136 136 137 137 operates like the :c:func:`read()` function. 138 138 139 - .. c:function:: void v4l2_mmap(void *start, size_t length, int prot, int flags, int fd, int64_t offset); 139 + .. c:function:: void *v4l2_mmap(void *start, size_t length, int prot, int flags, int fd, int64_t offset); 140 140 141 - operates like the :c:func:`munmap()` function. 141 + operates like the :c:func:`mmap()` function. 142 142 143 143 .. c:function:: int v4l2_munmap(void *_start, size_t length); 144 144