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