Lines Matching +full:pre +full:- +full:programs
1 .. SPDX-License-Identifier: GPL-2.0-only
9 - ``BPF_MAP_TYPE_ARRAY`` was introduced in kernel version 3.19
10 - ``BPF_MAP_TYPE_PERCPU_ARRAY`` was introduced in version 4.6
13 storage. The key type is an unsigned 32-bit integer (4 bytes) and the map is
15 creation time. All array elements are pre-allocated and zero initialized when
22 setting the flag ``BPF_F_MMAPABLE``. The map definition is page-aligned and
23 starts on the first page. Sufficient page-sized and page-aligned blocks of
25 which in some cases will result in over-allocation of memory. The benefit of
26 using this is increased performance and ease of use since userspace programs
33 ----------
38 .. code-block:: c
45 ``__sync_fetch_and_add()`` when updating the value in-place.
50 .. code-block:: c
64 -------------
66 Values stored in ``BPF_MAP_TYPE_ARRAY`` can be accessed by multiple programs
77 .. code-block:: c
86 -----------
92 ---------
104 ----------
108 .. code-block:: c
120 .. code-block:: c
134 __sync_fetch_and_add(value, skb->len);
140 ---------
148 .. code-block:: c
169 .. code-block:: c
189 .. code-block:: c
212 .. code-block:: c
234 .. code-block:: c