Skip to content

Latest commit

 

History

History
88 lines (67 loc) · 3.85 KB

bpf_map_push_elem.md

File metadata and controls

88 lines (67 loc) · 3.85 KB
title description
Helper Function 'bpf_map_push_elem'
This page documents the 'bpf_map_push_elem' eBPF helper function, including its defintion, usage, program types that can use it, and examples.

Helper function bpf_map_push_elem

:octicons-tag-24: v4.20

Definition

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

Push an element value in map. flags is one of:

BPF_EXIST

    If the queue/stack is full, the oldest element is removed to make room for this.

Returns

0 on success, or a negative error in case of failure.

#!c static long (* const bpf_map_push_elem)(void *map, const void *value, __u64 flags) = (void *) 87;

Usage

!!! example "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

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome