Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.66 KB

bpf_percpu_obj_drop_impl.md

File metadata and controls

48 lines (33 loc) · 1.66 KB
title description
KFunc 'bpf_percpu_obj_drop_impl'
This page documents the 'bpf_percpu_obj_drop_impl' eBPF kfunc, including its defintion, usage, program types that can use it, and examples.

KFunc bpf_percpu_obj_drop_impl

:octicons-tag-24: v6.7

Free an allocated percpu object.

Definition

All fields of the object that require destruction will be destructed before the storage is freed.

The meta parameter is rewritten by the verifier, no need for BPF program to set it.

#!c void bpf_percpu_obj_drop_impl(void *p__alloc, void *meta__ign)

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