Searched refs:l_old (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/bpf/ |
| H A D | bpf_arena_htab.h | 58 hashtab_elem_t *l_old; in htab_lookup_elem() local 63 l_old = lookup_elem_raw(head, htab_hash(key), key); in htab_lookup_elem() 64 if (l_old) in htab_lookup_elem() 65 return l_old->value; in htab_lookup_elem() 71 hashtab_elem_t *l_new = NULL, *l_old; in htab_update_elem() local 76 l_old = lookup_elem_raw(head, htab_hash(key), key); in htab_update_elem() 86 if (l_old) { in htab_update_elem() 87 list_del(&l_old->hash_node); in htab_update_elem() 88 bpf_free(l_old); in htab_update_elem()
|
| /linux/kernel/bpf/ |
| H A D | hashtab.c | 1152 static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old, in check_flags() argument 1155 if (l_old && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags() 1159 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags() 1171 struct htab_elem *l_new, *l_old; in htab_map_update_elem() local 1195 l_old = lookup_nulls_elem_raw(head, hash, key, key_size, in htab_map_update_elem() 1197 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem() 1200 if (l_old) { in htab_map_update_elem() 1203 htab_elem_value(l_old, key_size), in htab_map_update_elem() 1217 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_map_update_elem() 1219 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem() [all …]
|