Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\cgroup.c Create Date:2022-07-28 13:27:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:activate_effective_progs

Proto:static void activate_effective_progs(struct cgroup *cgrp, enum bpf_attach_type type, struct bpf_prog_array *old_array)

Type:void

Parameter:

TypeParameterName
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)
Caller
NameDescribe
cgroup_bpf_inheritgroup_bpf_inherit() - inherit effective programs from parent*@cgrp: the cgroup to modify
update_effective_progs