Function report | 
Source Code:kernel\bpf\local_storage.c | 
Create Date:2022-07-28 13:14:28 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:bpf_cgroup_storage_assign
Proto:int bpf_cgroup_storage_assign(struct bpf_prog_aux *aux, struct bpf_map *_map)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct bpf_prog_aux * | aux | |
| struct bpf_map * | _map | 
| 425 | stype = cgroup_storage_type(_map) | 
| 426 | map = map_to_storage(_map) | 
| 429 | spin_lock_bh( & lock) | 
| 433 | If cgroup_storage[stype] && cgroup_storage[stype] != _map Then Go to unlock | 
| 438 | cgroup_storage[stype] = _map | 
| 439 | ret = 0 | 
| 440 | unlock : | 
| 441 | spin_unlock_bh( & lock) | 
| 443 | 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  |