Skip to content

Helper function bpf_map_lookup_percpu_elem

v5.19

Definition

Copyright (c) 2015 The Libbpf Authors. All rights reserved.

Perform a lookup in percpu map for an entry associated to key on cpu.

Returns

Map value associated to key on cpu, or NULL if no entry was found or cpu is invalid.

static void *(* const bpf_map_lookup_percpu_elem)(void *map, const void *key, __u32 cpu) = (void *) 195;

Usage

Docs could be improved

This part of the docs is incomplete, contributions are very welcome

Program types

This helper call can be used in the following program types:

Map types

This helper call can be used with the following map types:

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome