函数逻辑报告 |
Source Code:kernel\bpf\lpm_trie.c |
Create Date:2022-07-27 14:30:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:trie_alloc
函数原型:static struct bpf_map *trie_alloc(union bpf_attr *attr)
返回类型:struct bpf_map
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| union bpf_attr * | attr |
| 565 | bpf_map_init_from_attr( & map, attr) |
| 566 | data_size等于 size of key in bytes 减offsetof(structbpf_lpm_trie_key, data) |
| 568 | max_prefixlen等于data_size乘8 |
| 570 | cost_per_node等于sizeof(structlpm_trie_node)加 size of value in bytes 加data_size |
| 574 | ret等于bpf_map_charge_init( & memory, cost) |
| 578 | raw_spin_lock_init( & lock) |
| 580 | 返回:map |
| 581 | out_err : |
| 583 | 返回:错误号 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |