A pair of Rust kernel modules
A pair of Rust kernel modules
Posted Sep 23, 2022 11:05 UTC (Fri) by adobriyan (subscriber, #30858)In reply to: A pair of Rust kernel modules by rep_movsd
Parent article: A pair of Rust kernel modules
"key" should be pointer to const.
BPF_CALL_4(bpf_map_update_elem,
struct bpf_map *, map,
void *, key,
void *, value,
u64, flags)
{
WARN_ON_ONCE(!rcu_read_lock_held() && !rcu_read_lock_bh_held());
return map->ops->map_update_elem(map, key, value, flags);
}