/linux-5.19.10/include/net/tc_act/ |
D | tc_vlan.h | 43 tcfv_action = rcu_dereference(to_vlan(a)->vlan_p)->tcfv_action; in tcf_vlan_action() 54 tcfv_push_vid = rcu_dereference(to_vlan(a)->vlan_p)->tcfv_push_vid; in tcf_vlan_push_vid() 65 tcfv_push_proto = rcu_dereference(to_vlan(a)->vlan_p)->tcfv_push_proto; in tcf_vlan_push_proto() 76 tcfv_push_prio = rcu_dereference(to_vlan(a)->vlan_p)->tcfv_push_prio; in tcf_vlan_push_prio() 86 memcpy(dest, rcu_dereference(to_vlan(a)->vlan_p)->tcfv_push_dst, ETH_ALEN); in tcf_vlan_push_eth() 87 memcpy(src, rcu_dereference(to_vlan(a)->vlan_p)->tcfv_push_src, ETH_ALEN); in tcf_vlan_push_eth()
|
D | tc_mpls.h | 44 tcfm_action = rcu_dereference(to_mpls(a)->mpls_p)->tcfm_action; in tcf_mpls_action() 55 tcfm_proto = rcu_dereference(to_mpls(a)->mpls_p)->tcfm_proto; in tcf_mpls_proto() 66 tcfm_label = rcu_dereference(to_mpls(a)->mpls_p)->tcfm_label; in tcf_mpls_label() 77 tcfm_tc = rcu_dereference(to_mpls(a)->mpls_p)->tcfm_tc; in tcf_mpls_tc() 88 tcfm_bos = rcu_dereference(to_mpls(a)->mpls_p)->tcfm_bos; in tcf_mpls_bos() 99 tcfm_ttl = rcu_dereference(to_mpls(a)->mpls_p)->tcfm_ttl; in tcf_mpls_ttl()
|
D | tc_skbedit.h | 39 flags = rcu_dereference(to_skbedit(a)->params)->flags; in is_tcf_skbedit_with_flag() 58 mark = rcu_dereference(to_skbedit(a)->params)->mark; in tcf_skbedit_mark() 75 ptype = rcu_dereference(to_skbedit(a)->params)->ptype; in tcf_skbedit_ptype() 92 priority = rcu_dereference(to_skbedit(a)->params)->priority; in tcf_skbedit_priority()
|
/linux-5.19.10/Documentation/RCU/ |
D | rcu_dereference.rst | 3 PROPER CARE AND FEEDING OF RETURN VALUES FROM rcu_dereference() 6 Most of the time, you can use values from rcu_dereference() or one of 14 - You must use one of the rcu_dereference() family of primitives 18 Without one of the rcu_dereference() primitives, compilers 20 different values for a single pointer! Without rcu_dereference(), 25 In addition, the volatile cast in rcu_dereference() prevents the 33 instead of rcu_dereference(). In this case, use of READ_ONCE() 37 - You are only permitted to use rcu_dereference on pointer values. 58 subsequent accesses no longer depend on the rcu_dereference(), 61 Of course, if "p" is a pointer from rcu_dereference(), and "a" [all …]
|
D | lockdep-splat.rst | 9 misuses of the RCU API, most notably using one of the rcu_dereference() 70 if (rcu_dereference(ioc->ioc_data) == cic) { 91 return value from rcu_dereference(), or at least until there is some 96 if (rcu_dereference(ioc->ioc_data) == cic) { 103 With this change, the rcu_dereference() is always within an RCU 108 returned from rcu_dereference(). Instead, that pointer is just compared 109 to the cic pointer, which means that the rcu_dereference() can be replaced
|
/linux-5.19.10/tools/testing/radix-tree/linux/ |
D | rcupdate.h | 7 #define rcu_dereference_raw(p) rcu_dereference(p) 8 #define rcu_dereference_protected(p, cond) rcu_dereference(p) 9 #define rcu_dereference_check(p, cond) rcu_dereference(p)
|
/linux-5.19.10/net/core/ |
D | lwtunnel.c | 126 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state() 159 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_valid_encap_type() 171 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_valid_encap_type() 252 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_fill_encap() 286 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_get_encap_size() 314 ops = rcu_dereference(lwtun_encaps[a->type]); in lwtunnel_cmp_encap() 340 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_output() 375 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_xmit() 409 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_input()
|
D | bpf_sk_storage.c | 57 sk_storage = rcu_dereference(sk->sk_bpf_storage); in bpf_sk_storage_free() 199 sk_storage = rcu_dereference(sk->sk_bpf_storage); in bpf_sk_storage_clone() 209 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_clone() 243 rcu_dereference(copy_selem->local_storage); in bpf_sk_storage_clone() 588 smap = rcu_dereference(sdata->smap); in diag_get() 627 sk_storage = rcu_dereference(sk->sk_bpf_storage); in bpf_sk_storage_diag_put_all() 640 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_diag_put_all() 688 sk_storage = rcu_dereference(sk->sk_bpf_storage); in bpf_sk_storage_diag_put() 761 selem = hlist_entry_safe(rcu_dereference(hlist_next_rcu(&selem->map_node)), in bpf_sk_storage_map_seq_find_next() 770 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next() [all …]
|
/linux-5.19.10/drivers/net/ |
D | net_failover.c | 125 primary_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_select_queue() 195 slave_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_get_stats() 202 slave_dev = rcu_dereference(nfo_info->standby_dev); in net_failover_get_stats() 250 slave_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_set_rx_mode() 256 slave_dev = rcu_dereference(nfo_info->standby_dev); in net_failover_set_rx_mode() 272 primary_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_vlan_rx_add_vid() 279 standby_dev = rcu_dereference(nfo_info->standby_dev); in net_failover_vlan_rx_add_vid() 296 slave_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_vlan_rx_kill_vid() 300 slave_dev = rcu_dereference(nfo_info->standby_dev); in net_failover_vlan_rx_kill_vid() 365 struct net_device *dev = rcu_dereference(skb->dev->rx_handler_data); in net_failover_handle_frame() [all …]
|
/linux-5.19.10/drivers/target/ |
D | target_core_stat.c | 428 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_inst_show() 442 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_dev_show() 456 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_indx_show() 470 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_role_show() 485 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_busy_count_show() 532 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_inst_show() 547 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_dev_show() 562 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_indx_show() 578 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_name_show() 596 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_port_index_show() [all …]
|
/linux-5.19.10/lib/math/ |
D | prime_numbers.c | 193 p = rcu_dereference(primes); in next_prime_number() 201 p = rcu_dereference(primes); in next_prime_number() 227 p = rcu_dereference(primes); in is_prime_number() 235 p = rcu_dereference(primes); in is_prime_number() 252 p = rcu_dereference(primes); in dump_primes()
|
/linux-5.19.10/arch/x86/kvm/mmu/ |
D | tdp_iter.h | 19 return READ_ONCE(*rcu_dereference(sptep)); in kvm_tdp_mmu_read_spte() 24 return xchg(rcu_dereference(sptep), new_spte); in kvm_tdp_mmu_write_spte_atomic() 29 WRITE_ONCE(*rcu_dereference(sptep), new_spte); in __kvm_tdp_mmu_write_spte()
|
/linux-5.19.10/include/linux/ |
D | if_tunnel.h | 15 for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next))
|
D | netfilter.h | 229 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nf_hook() 232 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nf_hook() 238 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nf_hook() 243 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nf_hook() 248 hook_head = rcu_dereference(net->nf.hooks_decnet[hook]); in nf_hook() 328 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in NF_HOOK_LIST() 331 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in NF_HOOK_LIST() 394 nat_hook = rcu_dereference(nf_nat_hook); in nf_nat_decode_session()
|
/linux-5.19.10/net/netfilter/ |
D | nfnetlink_hook.c | 197 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nfnl_hook_entries_head() 202 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nfnl_hook_entries_head() 208 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nfnl_hook_entries_head() 215 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nfnl_hook_entries_head() 222 hook_head = rcu_dereference(net->nf.hooks_decnet[hook]); in nfnl_hook_entries_head() 239 return rcu_dereference(netdev->nf_hooks_ingress); in nfnl_hook_entries_head() 243 return rcu_dereference(netdev->nf_hooks_egress); in nfnl_hook_entries_head()
|
D | nf_conntrack_timeout.c | 52 const struct nf_ct_timeout_hooks *h = rcu_dereference(nf_ct_timeout_hook); in __nf_ct_timeout_put() 68 h = rcu_dereference(nf_ct_timeout_hook); in nf_ct_set_timeout() 125 h = rcu_dereference(nf_ct_timeout_hook); in nf_ct_destroy_timeout()
|
D | nf_queue.c | 122 qh = rcu_dereference(nf_queue_handler); in nf_queue_nf_hook_drop() 167 qh = rcu_dereference(nf_queue_handler); in __nf_queue() 284 return rcu_dereference(net->nf.hooks_bridge[hooknum]); in nf_hook_entries_head() 287 return rcu_dereference(net->nf.hooks_ipv4[hooknum]); in nf_hook_entries_head() 289 return rcu_dereference(net->nf.hooks_ipv6[hooknum]); in nf_hook_entries_head()
|
/linux-5.19.10/include/net/ |
D | nexthop.h | 360 nhi = rcu_dereference(nh->nh_info); in nexthop_path_fib_result() 398 struct nh_group *nhg = rcu_dereference(nh->nh_grp); in nexthop_get_nhc_lookup() 404 nhi = rcu_dereference(nhe->nh_info); in nexthop_get_nhc_lookup() 411 nhi = rcu_dereference(nh->nh_info); in nexthop_get_nhc_lookup() 427 struct nh_group *nhg = rcu_dereference(nh->nh_grp); in nexthop_uses_dev() 433 nhi = rcu_dereference(nhe->nh_info); in nexthop_uses_dev() 438 nhi = rcu_dereference(nh->nh_info); in nexthop_uses_dev() 576 nhi = rcu_dereference(nhp->nh_info); in nexthop_path_fdb_result()
|
D | dn_dev.h | 181 dn_db = rcu_dereference(dev->dn_ptr); in dn_dev_islocal() 187 for (ifa = rcu_dereference(dn_db->ifa_list); in dn_dev_islocal() 189 ifa = rcu_dereference(ifa->ifa_next)) in dn_dev_islocal()
|
/linux-5.19.10/kernel/module/ |
D | kallsyms.c | 181 rcu_dereference(mod->kallsyms)->symtab = (void *)symsec->sh_addr; in add_kallsyms() 182 rcu_dereference(mod->kallsyms)->num_symtab = symsec->sh_size / sizeof(Elf_Sym); in add_kallsyms() 184 rcu_dereference(mod->kallsyms)->strtab = in add_kallsyms() 186 rcu_dereference(mod->kallsyms)->typetab = mod->init_layout.base + info->init_typeoffs; in add_kallsyms() 196 src = rcu_dereference(mod->kallsyms)->symtab; in add_kallsyms() 197 for (ndst = i = 0; i < rcu_dereference(mod->kallsyms)->num_symtab; i++) { in add_kallsyms() 198 rcu_dereference(mod->kallsyms)->typetab[i] = elf_type(src + i, info); in add_kallsyms() 205 rcu_dereference(mod->kallsyms)->typetab[i]; in add_kallsyms() 209 &rcu_dereference(mod->kallsyms)->strtab[src[i].st_name], in add_kallsyms()
|
/linux-5.19.10/tools/memory-model/litmus-tests/ |
D | MP+onceassign+derefonce.litmus | 7 * rcu_dereference() suffice to ensure that an RCU reader will not see 28 r0 = rcu_dereference(*p);
|
/linux-5.19.10/security/yama/ |
D | yama_lsm.c | 237 myself = rcu_dereference(myself->group_leader); in yama_task_prctl() 283 parent = rcu_dereference(parent->group_leader); in task_is_descendant() 286 walker = rcu_dereference(walker->group_leader); in task_is_descendant() 291 walker = rcu_dereference(walker->real_parent); in task_is_descendant() 327 tracee = rcu_dereference(tracee->group_leader); in ptracer_exception_found()
|
/linux-5.19.10/kernel/sched/ |
D | membarrier.c | 285 p = rcu_dereference(cpu_rq(cpu)->curr); in membarrier_global_expedited() 357 p = rcu_dereference(cpu_rq(cpu_id)->curr); in membarrier_private_expedited() 370 p = rcu_dereference(cpu_rq(cpu)->curr); in membarrier_private_expedited() 468 p = rcu_dereference(rq->curr); in sync_runqueues_membarrier_state()
|
/linux-5.19.10/drivers/pci/ |
D | p2pdma.c | 55 p2pdma = rcu_dereference(pdev->p2pdma); in size_show() 72 p2pdma = rcu_dereference(pdev->p2pdma); in available_show() 89 p2pdma = rcu_dereference(pdev->p2pdma); in published_show() 542 p2pdma = rcu_dereference(provider->p2pdma); in calc_map_type_and_dist() 619 p2pdma = rcu_dereference(pdev->p2pdma); in pci_has_p2pmem() 711 p2pdma = rcu_dereference(pdev->p2pdma); in pci_alloc_p2pmem() 843 p2pdma = rcu_dereference(pdev->p2pdma); in pci_p2pmem_publish() 867 p2pdma = rcu_dereference(provider->p2pdma); in pci_p2pdma_map_type()
|
/linux-5.19.10/kernel/bpf/ |
D | lpm_trie.c | 637 search_root = rcu_dereference(trie->root); in trie_get_next_key() 660 node = rcu_dereference(node->child[next_bit]); in trie_get_next_key() 672 if (rcu_dereference(parent->child[0]) == node) { in trie_get_next_key() 673 search_root = rcu_dereference(parent->child[1]); in trie_get_next_key() 696 node = rcu_dereference(node->child[0]); in trie_get_next_key() 699 node = rcu_dereference(node->child[0]); in trie_get_next_key() 701 node = rcu_dereference(next_node->child[1]); in trie_get_next_key()
|