Searched refs:new_ptr (Results 1 – 1 of 1) sorted by relevance
790 void *new_ptr, *old_ptr; in bpf_fd_array_map_update_elem() local800 new_ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_array_map_update_elem()801 if (IS_ERR(new_ptr)) in bpf_fd_array_map_update_elem()802 return PTR_ERR(new_ptr); in bpf_fd_array_map_update_elem()806 old_ptr = xchg(array->ptrs + index, new_ptr); in bpf_fd_array_map_update_elem()807 map->ops->map_poke_run(map, index, old_ptr, new_ptr); in bpf_fd_array_map_update_elem()810 old_ptr = xchg(array->ptrs + index, new_ptr); in bpf_fd_array_map_update_elem()