函数源码 |
Source File:kernel\bpf\reuseport_array.c |
Create Date:2022-07-27 14:48:07 |
首页 | Copyright©Brick |
48 49 50 51 52 53 54 55 56 57 | static void *reuseport_array_lookup_elem( struct bpf_map *map, void *key) { struct reuseport_array *array = reuseport_array(map); u32 index = *(u32 *)key; if (unlikely(index >= array->map.max_entries)) return NULL; return rcu_dereference(array->ptrs[index]); } |