Function report |
Source Code:kernel\bpf\cgroup.c |
Create Date:2022-07-28 13:27:48 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Must be called with cgroup_mutex held to avoid races.
Proto:int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, union bpf_attr __user *uattr)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cgroup * | cgrp | |
| const union bpf_attr * | attr | |
| union bpf_attr __user * | uattr |
| 501 | __user * prog_ids = u64_to_user_ptr(prog_ids) |
| 502 | type = attach_type |
| 506 | ret = 0 |
| 511 | If query_flags & lags for BPF_PROG_QUERY Then cnt = bpf_prog_array_length(effective) |
| 516 | If copy_to_user( & attach_flags, & flags, size of flags ) Then Return -EFAULT |
| 518 | If copy_to_user( & prog_cnt, & cnt, size of cnt ) Then Return -EFAULT |
| 528 | If query_flags & lags for BPF_PROG_QUERY Then |
| 529 | Return bpf_prog_array_copy_to_user(effective, prog_ids, cnt) |
| 530 | Else |
| 534 | i = 0 |
| 543 | Return ret |
| 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 |