Searched refs:bpf_lru_node (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/kernel/bpf/ |
D | bpf_lru_list.c | 42 static bool bpf_lru_node_is_ref(const struct bpf_lru_node *node) in bpf_lru_node_is_ref() 47 static void bpf_lru_node_clear_ref(struct bpf_lru_node *node) in bpf_lru_node_clear_ref() 67 struct bpf_lru_node *node, in __bpf_lru_node_move_to_free() 88 struct bpf_lru_node *node, in __bpf_lru_node_move_in() 106 struct bpf_lru_node *node, in __bpf_lru_node_move() 148 struct bpf_lru_node *node, *tmp_node, *first_node; in __bpf_lru_list_rotate_active() 151 first_node = list_first_entry(active, struct bpf_lru_node, list); in __bpf_lru_list_rotate_active() 176 struct bpf_lru_node *node; in __bpf_lru_list_rotate_inactive() 193 node = list_entry(cur, struct bpf_lru_node, list); in __bpf_lru_list_rotate_inactive() 218 struct bpf_lru_node *node, *tmp_node; in __bpf_lru_list_shrink_inactive() [all …]
|
D | bpf_lru_list.h | 24 struct bpf_lru_node { struct 51 typedef bool (*del_from_htab_func)(void *arg, struct bpf_lru_node *node); argument 65 static inline void bpf_lru_node_set_ref(struct bpf_lru_node *node) in bpf_lru_node_set_ref() 76 struct bpf_lru_node *bpf_lru_pop_free(struct bpf_lru *lru, u32 hash); 77 void bpf_lru_push_free(struct bpf_lru *lru, struct bpf_lru_node *node);
|
D | hashtab.c | 125 struct bpf_lru_node lru_node; 183 static bool htab_lru_map_delete_node(void *arg, struct bpf_lru_node *node); 304 struct bpf_lru_node *node = bpf_lru_pop_free(&htab->lru, hash); in prealloc_lru_pop() 764 offsetof(struct bpf_lru_node, ref)); in htab_lru_map_gen_lookup() 768 offsetof(struct bpf_lru_node, ref), in htab_lru_map_gen_lookup() 795 static bool htab_lru_map_delete_node(void *arg, struct bpf_lru_node *node) in htab_lru_map_delete_node()
|