函数逻辑报告 |
Source Code:kernel\bpf\arraymap.c |
Create Date:2022-07-27 14:27:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:fd_array_map_delete_elem
函数原型:static int fd_array_map_delete_elem(struct bpf_map *map, void *key)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct bpf_map * | map | |
| void * | key |
| 609 | 如果index大于等于max_entries则返回:负E2BIG |
| 612 | 如果map_poke_run则 |
| 613 | mutex_lock( & poke_mutex) |
| 615 | map_poke_run(map, index, old_ptr, NULL) |
| 617 | 否则 |
| 621 | 如果old_ptr则 |
| 622 | map_fd_put_ptr(old_ptr) |
| 623 | 返回:0 |
| 624 | 否则 |
| 625 | 返回:负ENOENT |
| 名称 | 描述 |
|---|---|
| bpf_fd_array_map_clear | decrement refcnt of all bpf_progs that are stored in this map |
| perf_event_fd_array_release |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |