| .. -*- coding: utf-8; mode: rst -*- |
| v4l2-munmap - Unmap device memory |
| .. c:function:: int munmap( void *start, size_t length ) |
| Address of the mapped buffer as returned by the |
| :ref:`mmap() <func-mmap>` function. |
| Length of the mapped buffer. This must be the same value as given to |
| :ref:`mmap() <func-mmap>` and returned by the driver in the struct |
| :c:type:`v4l2_buffer` ``length`` field for the |
| single-planar API and in the struct |
| :c:type:`v4l2_plane` ``length`` field for the |
| Unmaps a previously with the :ref:`mmap() <func-mmap>` function mapped |
| buffer and frees it, if possible. |
| On success :ref:`munmap() <func-munmap>` returns 0, on failure -1 and the |
| ``errno`` variable is set appropriately: |
| The ``start`` or ``length`` is incorrect, or no buffers have been |