Skip to content

KFunc bpf_put_mem_cgroup

v7.0

Put a reference to a memory cGroup.

Definition

Releases a previously acquired struct mem_cgroup reference.

Implements KF_RELEASE semantics.

Parameters

memcg: memory cgroup to release

Signature

void bpf_put_mem_cgroup(struct mem_cgroup *memcg)

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