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 dmx-munmap - Unmap device memory
21 .. warning:: This API is still experimental.
33 .. c:function:: int munmap( void *start, size_t length )
40 Address of the mapped buffer as returned by the
41 :ref:`mmap() <dmx-mmap>` function.
44 Length of the mapped buffer. This must be the same value as given to
45 :ref:`mmap() <dmx-mmap>`.
51 Unmaps a previously with the :ref:`mmap() <dmx-mmap>` function mapped
52 buffer and frees it, if possible.
58 On success :ref:`munmap() <dmx-munmap>` returns 0, on failure -1 and the
59 ``errno`` variable is set appropriately:
62 The ``start`` or ``length`` is incorrect, or no buffers have been