函数逻辑报告 |
Source Code:kernel\bpf\arraymap.c |
Create Date:2022-07-27 14:27:51 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:ly called from syscall
函数原型:int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, void *key, void *value, u64 map_flags)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct bpf_map * | map | |
| struct file * | map_file | |
| void * | key | |
| void * | value | |
| u64 | map_flags |
| 578 | 如果map_flags不等于create new element or update existing 则返回:负EINVAL |
| 581 | 如果index大于等于max_entries则返回:负E2BIG |
| 585 | new_ptr等于map_fd_get_ptr(map, map_file, ufd) |
| 589 | 如果map_poke_run则 |
| 590 | mutex_lock( & poke_mutex) |
| 592 | map_poke_run(map, index, old_ptr, new_ptr) |
| 594 | 否则 |
| 598 | 如果old_ptr则map_fd_put_ptr(old_ptr) |
| 600 | 返回:0 |
| 名称 | 描述 |
|---|---|
| map_update_elem |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |