Searched refs:rb_map (Results 1 – 1 of 1) sorted by relevance
150 struct bpf_ringbuf_map *rb_map; in ringbuf_map_alloc() local166 rb_map = kzalloc(sizeof(*rb_map), GFP_USER | __GFP_ACCOUNT); in ringbuf_map_alloc()167 if (!rb_map) in ringbuf_map_alloc()170 bpf_map_init_from_attr(&rb_map->map, attr); in ringbuf_map_alloc()172 rb_map->rb = bpf_ringbuf_alloc(attr->max_entries, rb_map->map.numa_node); in ringbuf_map_alloc()173 if (!rb_map->rb) { in ringbuf_map_alloc()174 kfree(rb_map); in ringbuf_map_alloc()178 return &rb_map->map; in ringbuf_map_alloc()197 struct bpf_ringbuf_map *rb_map; in ringbuf_map_free() local199 rb_map = container_of(map, struct bpf_ringbuf_map, map); in ringbuf_map_free()[all …]