Function report |
Source Code:kernel\bpf\cgroup.c |
Create Date:2022-07-28 13:27:44 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__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.
Proto:int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog, enum bpf_attach_type type)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cgroup * | cgrp | |
| struct bpf_prog * | prog | |
| enum bpf_attach_type | type |
| 437 | If flags & BPF_F_ALLOW_MULTI Then |
| 443 | Else |
| 444 | If list_empty - tests whether a list is empty*@head: the list to test. Then Return -ENOENT |
| 449 | If flags & BPF_F_ALLOW_MULTI Then |
| 463 | Else |
| 469 | prog = NULL |
| 472 | err = update_effective_progs(cgrp, type) |
| 483 | If list_empty - tests whether a list is empty*@head: the list to test. Then flags[type] = 0 |
| 487 | bpf_prog_put(old_prog) |
| 489 | Return 0 |
| 491 | cleanup : |
| 494 | Return err |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |