Home
last modified time | relevance | path

Searched refs:bpf_htab (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/kernel/bpf/
Dhashtab.c86 struct bpf_htab { struct
131 static inline bool htab_is_prealloc(const struct bpf_htab *htab) in htab_is_prealloc()
136 static void htab_init_buckets(struct bpf_htab *htab) in htab_init_buckets()
149 static inline int htab_lock_bucket(const struct bpf_htab *htab, in htab_lock_bucket()
170 static inline void htab_unlock_bucket(const struct bpf_htab *htab, in htab_unlock_bucket()
182 static bool htab_is_lru(const struct bpf_htab *htab) in htab_is_lru()
188 static bool htab_is_percpu(const struct bpf_htab *htab) in htab_is_percpu()
210 static struct htab_elem *get_htab_elem(struct bpf_htab *htab, int i) in get_htab_elem()
215 static bool htab_has_extra_elems(struct bpf_htab *htab) in htab_has_extra_elems()
220 static void htab_free_prealloced_timers(struct bpf_htab *htab) in htab_free_prealloced_timers()
[all …]
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dmap_ptr_kern.c91 struct bpf_htab { struct
110 struct bpf_htab *hash = (struct bpf_htab *)&m_hash; in check_hash()
215 struct bpf_htab *percpu_hash = (struct bpf_htab *)&m_percpu_hash; in check_percpu_hash()
289 struct bpf_htab *lru_hash = (struct bpf_htab *)&m_lru_hash; in check_lru_hash()
306 struct bpf_htab *lru_percpu_hash = (struct bpf_htab *)&m_lru_percpu_hash; in check_lru_percpu_hash()
395 struct bpf_htab *hash_of_maps = (struct bpf_htab *)&m_hash_of_maps; in check_hash_of_maps()
397 struct bpf_htab *inner_map; in check_hash_of_maps()