Function report |
Source Code:kernel\bpf\cgroup.c |
Create Date:2022-07-28 13:28:10 |
| 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_run_filter_sysctl - Run a program on sysctl*@head: sysctl table header*@table: sysctl table*@write: sysctl is being read (= 0) or written (= 1)*@buf: pointer to buffer passed by user space*@pcount: value-result argument: value is size of
Proto:int __cgroup_bpf_run_filter_sysctl(struct ctl_table_header *head, struct ctl_table *table, int write, void __user *buf, size_t *pcount, loff_t *ppos, void **new_buf, enum bpf_attach_type type)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct ctl_table_header * | head | |
| struct ctl_table * | table | |
| int | write | |
| void __user * | buf | |
| size_t * | pcount | |
| loff_t * | ppos | |
| void ** | new_buf | |
| enum bpf_attach_type | type |
| 887 | struct bpf_sysctl_kern ctx = {head = head, table = table, write = write, ppos = ppos, cur_val = NULL, cur_len = PAGE_SIZE, new_val = NULL, new_len = 0, new_updated = 0, } |
| 901 | cur_val = kmalloc_track_caller(cur_len, GFP_KERNEL) |
| 902 | If cur_val Then |
| 914 | Else |
| 916 | cur_len = 0 |
| 932 | cgrp = task_dfl_cgroup(current process) |
| 938 | If ret == 1 && new_updated Then |
| 941 | Else |
| 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 |