函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:activate_effective_progs

函数原型:static void activate_effective_progs(struct cgroup *cgrp, enum bpf_attach_type type, struct bpf_prog_array *old_array)

返回类型:void

参数:

类型参数名称
struct cgroup *cgrp
enum bpf_attach_typetype
struct bpf_prog_array *old_array
186  old_array等于cu_replace_pointer() - replace an RCU pointer, returning its old value*@rcu_ptr: RCU pointer, whose old value is returned*@ptr: regular pointer*@c: the lockdep conditions under which the dereference will take place* Perform a replacement, where @rcu_ptr ( array of effective progs in this cgroup [type], old_array, lockdep_is_held( & cgroup_mutex is the master lock))
191  bpf_prog_array_free(old_array)
调用者
名称描述
cgroup_bpf_inheritgroup_bpf_inherit() - inherit effective programs from parent*@cgrp: the cgroup to modify
update_effective_progs