Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: number of elements in the list.* it's slow but the list cannot be long

Proto:static u32 prog_list_length(struct list_head *head)

Type:u32

Parameter:

TypeParameterName
struct list_head *head
94  cnt = 0
97  If Not prog Then Continue
99  cnt++
101  Return cnt
Caller
NameDescribe
hierarchy_allows_attach parent has non-overridable prog attached,* disallow attaching new programs to the descendent cgroup.* if parent has overridable or multi-prog, allow attaching
compute_effective_progsmpute a chain of effective programs for a given cgroup:* start from the list of programs in this cgroup and add* all parent programs.* Note that parent's F_ALLOW_OVERRIDE-type program is yielding* to programs in this cgroup
__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_queryMust be called with cgroup_mutex held to avoid races.