Lines Matching +full:value +full:- +full:start
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
4 .. _func-mmap:
13 v4l2-mmap - Map device memory into application address space
18 .. code-block:: c
23 .. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset )
28 ``start``
30 When the ``MAP_FIXED`` flag is specified, ``start`` must be a
36 Length of the memory area to map. This must be the same value as
39 single-planar API, and the same value as returned by the driver in
41 the multi-planar API.
72 ``start`` must be a multiple of the pagesize. Use of this option is
77 other (e. g. child-) processes.
83 copy-on-write semantics. V4L2 applications should not set the
91 Offset of the buffer in device memory. This must be the same value
94 the single-planar API, and the same value as returned by the driver
96 ``mem_offset`` field for the multi-planar API.
103 application address space, preferably at address ``start``. This latter
113 Return Value
117 error ``MAP_FAILED`` (-1) is returned, and the ``errno`` variable is set
127 The ``start`` or ``length`` or ``offset`` are not suitable. (E. g.
130 The ``flags`` or ``prot`` value is not supported.