KFunc bpf_percpu_obj_drop_impl
Free an allocated per-CPU object.
Note
This kfunc is deprecated as of 7.1, replaced by bpf_percpu_obj_drop. This kfunc will be removed at some point in the future.
Definition
All fields of the object that require destruction will be destructed before the storage is freed.
Parameters
p__alloc: The object to be freed.
The meta parameter is rewritten by the verifier, no need for BPF program to set it.
Signature
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
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
Docs could be improved
This part of the docs is incomplete, contributions are very welcome