htab_elem
static struct htab_elem *alloc_htab_elem(struct bpf_htab *htab, void *key,
struct htab_elem *old_elem, u64 map_flags)
struct htab_elem *l_new, **pl_new;
l_new = container_of(l, struct htab_elem, fnode);
struct htab_elem *batch_flink;
static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old,
struct htab_elem *l_new, *l_old;
static void htab_lru_push_free(struct bpf_htab *htab, struct htab_elem *elem)
struct htab_elem *l_new, *l_old = NULL;
struct htab_elem *l_new, *l_old;
struct htab_elem *l_new = NULL, *l_old;
struct htab_elem *l;
struct htab_elem *l;
struct htab_elem *l;
struct htab_elem *l;
struct htab_elem *l;
struct htab_elem *node_to_free = NULL;
struct htab_elem *l;
static inline void *htab_elem_value(struct htab_elem *l, u32 key_size)
static inline void htab_elem_set_ptr(struct htab_elem *l, u32 key_size,
static inline void __percpu *htab_elem_get_ptr(struct htab_elem *l, u32 key_size)
static void *fd_htab_map_get_ptr(const struct bpf_map *map, struct htab_elem *l)
static struct htab_elem *get_htab_elem(struct bpf_htab *htab, int i)
return (struct htab_elem *) (htab->elems + i * (u64)htab->elem_size);
static struct htab_elem *
struct htab_elem *prev_elem)
struct htab_elem *elem;
elem = hlist_nulls_entry_safe(n, struct htab_elem, hash_node);
struct htab_elem *elem;
static int __bpf_hash_map_seq_show(struct seq_file *seq, struct htab_elem *elem)
struct htab_elem *elem;
struct htab_elem *elem;
usage += sizeof(struct htab_elem *) * num_possible_cpus();
struct htab_elem *l = __htab_map_lookup_elem(map, key);
offsetof(struct htab_elem, key) + roundup(map->key_size, 8));
struct htab_elem *l;
struct htab_elem *l = __htab_map_lookup_elem(map, key);
struct htab_elem *l;
struct htab_elem *l;
struct htab_elem *elem;
struct htab_elem *l;
struct htab_elem *l;
offsetof(struct htab_elem, key) +
static struct htab_elem *prealloc_lru_pop(struct bpf_htab *htab, void *key,
struct htab_elem *l;
l = container_of(node, struct htab_elem, lru_node);
offsetof(struct htab_elem, hash) -
offsetof(struct htab_elem, lru_node),
offsetof(struct htab_elem, lru_node),
htab->elems + offsetof(struct htab_elem, fnode),
struct htab_elem *__percpu *pptr, *l_new;
pptr = bpf_map_alloc_percpu(&htab->map, sizeof(struct htab_elem *), 8,
l_new = container_of(l, struct htab_elem, fnode);
BUILD_BUG_ON(offsetof(struct htab_elem, fnode.next) !=
offsetof(struct htab_elem, hash_node.pprev));
sizeof(struct htab_elem))
struct htab_elem *elem = obj;
htab->elem_size = sizeof(struct htab_elem) +
static struct htab_elem *lookup_elem_raw(struct hlist_nulls_head *head, u32 hash,
struct htab_elem *l;
static struct htab_elem *lookup_nulls_elem_raw(struct hlist_nulls_head *head,
struct htab_elem *l;
struct htab_elem *l;
struct htab_elem *l = __htab_map_lookup_elem(map, key);
offsetof(struct htab_elem, key) +
struct htab_elem *l = __htab_map_lookup_elem(map, key);
offsetof(struct htab_elem, lru_node) +
offsetof(struct htab_elem, lru_node) +
offsetof(struct htab_elem, key) +
struct htab_elem *elem)
struct htab_elem *l = NULL, *tgt_l;
tgt_l = container_of(node, struct htab_elem, lru_node);
struct htab_elem *l, *next_l;
struct htab_elem, hash_node);
struct htab_elem, hash_node);
struct htab_elem *__percpu *extra_elems;
static void htab_elem_free(struct bpf_htab *htab, struct htab_elem *l)
static void htab_put_fd_value(struct bpf_htab *htab, struct htab_elem *l)
static void free_htab_elem(struct bpf_htab *htab, struct htab_elem *l)