函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\local_storage.c Create Date:2022-07-27 14:31:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_cgroup_storage_free

函数原型:void bpf_cgroup_storage_free(struct bpf_cgroup_storage *storage)

返回类型:void

参数:

类型参数名称
struct bpf_cgroup_storage *storage
547  如果非storage则返回
550  map等于map
552  bpf_cgroup_storage_calculate_size(map, & pages)
553  bpf_map_uncharge_memlock(map, pages)
555  stype等于cgroup_storage_type(map)
556  如果stype恒等于BPF_CGROUP_STORAGE_SHAREDall_rcu() - Queue an RCU callback for invocation after a grace period
558  否则all_rcu() - Queue an RCU callback for invocation after a grace period
调用者
名称描述
cgroup_bpf_releasegroup_bpf_release() - put references of all bpf programs and* release all cgroup bpf data*@work: work structure embedded into the cgroup to modify
__cgroup_bpf_attach__cgroup_bpf_attach() - Attach the program to a cgroup, and* propagate the change to descendants*@cgrp: The cgroup which descendants to traverse*@prog: A program to attach*@type: Type of attach operation*@flags: Option flags
__cgroup_bpf_detach__cgroup_bpf_detach() - Detach the program from a cgroup, and* propagate the change to descendants*@cgrp: The cgroup which descendants to traverse*@prog: A program to detach or NULL*@type: Type of detach operation* Must be called with cgroup_mutex held.