Home
last modified time | relevance | path

Searched refs:st_ops_assoc (Results 1 – 2 of 2) sorted by relevance

/linux/kernel/bpf/
H A Dbpf_struct_ops.c1494 struct bpf_map *st_ops_assoc; in bpf_prog_assoc_struct_ops() local
1498 st_ops_assoc = rcu_dereference_protected(prog->aux->st_ops_assoc, in bpf_prog_assoc_struct_ops()
1500 if (st_ops_assoc && st_ops_assoc == map) in bpf_prog_assoc_struct_ops()
1503 if (st_ops_assoc) { in bpf_prog_assoc_struct_ops()
1507 rcu_assign_pointer(prog->aux->st_ops_assoc, BPF_PTR_POISON); in bpf_prog_assoc_struct_ops()
1516 rcu_assign_pointer(prog->aux->st_ops_assoc, map); in bpf_prog_assoc_struct_ops()
1524 struct bpf_map *st_ops_assoc; in bpf_prog_disassoc_struct_ops() local
1528 st_ops_assoc = rcu_dereference_protected(prog->aux->st_ops_assoc, in bpf_prog_disassoc_struct_ops()
1530 if (!st_ops_assoc || st_ops_assoc == BPF_PTR_POISON) in bpf_prog_disassoc_struct_ops()
1534 bpf_map_put(st_ops_assoc); in bpf_prog_disassoc_struct_ops()
[all …]
/linux/include/linux/
H A Dbpf.h1859 struct bpf_map __rcu *st_ops_assoc; member