Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.27 KB

bpf_key_put.md

File metadata and controls

42 lines (28 loc) · 1.27 KB
title description
KFunc 'bpf_key_put'
This page documents the 'bpf_key_put' eBPF kfunc, including its defintion, usage, program types that can use it, and examples.

KFunc bpf_key_put

:octicons-tag-24: v6.1

Decrement key reference count if key is valid and free bpf_key

Definition

Decrement the reference count of the key inside bkey, if the pointer is valid, and free bkey.

#!c void bpf_key_put(struct bpf_key *bkey)

!!! note This kfunc releases the pointer passed in to it. There can be only one referenced pointer that can be passed in. All copies of the pointer being released are invalidated as a result of invoking this kfunc.

Usage

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

Program types

The following program types can make use of this kfunc:

Example

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