| 函数逻辑报告 | 
| Source Code: kernel\bpf\syscall.c | Create Date:2022-07-27 14:04:07 | 
| Last Modify:2022-05-19 18:06:12 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:find_and_alloc_map
函数原型:static struct bpf_map *find_and_alloc_map(union bpf_attr *attr)
返回类型:struct bpf_map
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| union bpf_attr * | attr | 
| 105 | type等于 one of enum bpf_map_type | 
| 109 | 如果type大于等于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(bpf_map_types)则返回:错误号 | 
| 112 | ops等于bpf_map_types[type] | 
| 116 | 如果map_alloc_check则 | 
| 117 | err等于map_alloc_check(attr) | 
| 126 | The first two cachelines with read-mostly members of which some * are also accessed in fast-path (e.g. ops, max_entries).等于ops | 
| 128 | 返回:map | 
| 名称 | 描述 | 
|---|---|
| map_create | alled via syscall | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |