1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/userspace-api/media/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
19 v4l2-munmap - Unmap device memory
31 .. c:function:: int munmap( void *start, size_t length )
38 Address of the mapped buffer as returned by the
39 :ref:`mmap() <func-mmap>` function.
42 Length of the mapped buffer. This must be the same value as given to
43 :ref:`mmap() <func-mmap>` and returned by the driver in the struct
44 :c:type:`v4l2_buffer` ``length`` field for the
45 single-planar API and in the struct
46 :c:type:`v4l2_plane` ``length`` field for the
53 Unmaps a previously with the :ref:`mmap() <func-mmap>` function mapped
54 buffer and frees it, if possible.
60 On success :ref:`munmap() <func-munmap>` returns 0, on failure -1 and the
61 ``errno`` variable is set appropriately:
64 The ``start`` or ``length`` is incorrect, or no buffers have been