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

/linux-master/kernel/bpf/
H A Dhashtab.c87 struct bpf_htab { struct
132 static inline bool htab_is_prealloc(const struct bpf_htab *htab)
137 static void htab_init_buckets(struct bpf_htab *htab)
150 static inline int htab_lock_bucket(const struct bpf_htab *htab,
173 static inline void htab_unlock_bucket(const struct bpf_htab *htab,
186 static bool htab_is_lru(const struct bpf_htab *htab)
192 static bool htab_is_percpu(const struct bpf_htab *htab)
214 static struct htab_elem *get_htab_elem(struct bpf_htab *htab, int i)
219 static bool htab_has_extra_elems(struct bpf_htab *htab)
224 static void htab_free_prealloced_timers(struct bpf_htab *hta
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dmap_ptr_kern.c91 struct bpf_htab { struct
100 __uint(map_flags, BPF_F_NO_PREALLOC); /* to test bpf_htab.count */
110 struct bpf_htab *hash = (struct bpf_htab *)&m_hash;
215 struct bpf_htab *percpu_hash = (struct bpf_htab *)&m_percpu_hash;
289 struct bpf_htab *lru_hash = (struct bpf_htab *)&m_lru_hash;
306 struct bpf_htab *lru_percpu_hash = (struct bpf_htab *)
[all...]

Completed in 157 milliseconds