Lines Matching +full:key +full:- +full:code
1 .. SPDX-License-Identifier: GPL-2.0-only
9 - ``BPF_MAP_TYPE_ARRAY_OF_MAPS`` and ``BPF_MAP_TYPE_HASH_OF_MAPS`` were
15 ``array_of_maps->sock_map``.
27 - Multi-level nesting is not supported.
28 - Any BPF map type can be used as an inner map, except for
30 - A BPF program cannot update or delete outer map entries.
32 For ``BPF_MAP_TYPE_ARRAY_OF_MAPS`` the key is an unsigned 32-bit integer index
36 For ``BPF_MAP_TYPE_HASH_OF_MAPS`` the key type can be chosen when defining the
37 map. The kernel is responsible for allocating and freeing key/value pairs, up to
38 the max_entries limit that you specify. Hash maps use pre-allocation of hash
40 pre-allocation when it is too memory expensive.
46 -----------------
51 .. code-block:: c
53 void *bpf_map_lookup_elem(struct bpf_map *map, const void *key)
62 ------------------
68 .. code-block:: c
73 __type(key, __u32);
80 __type(key, __u32);
91 ----------
95 .. code-block:: c
103 sizeof(__u32), /* key size */
113 .. code-block:: c
129 - https://lore.kernel.org/netdev/20170322170035.923581-3-kafai@fb.com/
130 - https://lore.kernel.org/netdev/20170322170035.923581-4-kafai@fb.com/