/linux-6.6.21/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() 103 rx_queue = rcu_dereference(to_skbedit(a)->params)->queue_mapping; in tcf_skbedit_rx_queue_mapping()
|
/linux-6.6.21/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(), 26 In addition, the volatile cast in rcu_dereference() prevents the 34 instead of rcu_dereference(). In this case, use of READ_ONCE() 38 - You are only permitted to use rcu_dereference() on pointer values. 59 subsequent accesses no longer depend on the rcu_dereference(), 62 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-6.6.21/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-6.6.21/net/core/ |
D | lwtunnel.c | 129 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state() 162 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_valid_encap_type() 174 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_valid_encap_type() 255 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_fill_encap() 289 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_get_encap_size() 317 ops = rcu_dereference(lwtun_encaps[a->type]); in lwtunnel_cmp_encap() 343 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_output() 378 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_xmit() 412 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_input()
|
D | bpf_sk_storage.c | 54 sk_storage = rcu_dereference(sk->sk_bpf_storage); in bpf_sk_storage_free() 164 sk_storage = rcu_dereference(sk->sk_bpf_storage); in bpf_sk_storage_clone() 174 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_clone() 208 rcu_dereference(copy_selem->local_storage); in bpf_sk_storage_clone() 556 smap = rcu_dereference(sdata->smap); in diag_get() 595 sk_storage = rcu_dereference(sk->sk_bpf_storage); in bpf_sk_storage_diag_put_all() 608 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_diag_put_all() 656 sk_storage = rcu_dereference(sk->sk_bpf_storage); in bpf_sk_storage_diag_put() 729 selem = hlist_entry_safe(rcu_dereference(hlist_next_rcu(&selem->map_node)), in bpf_sk_storage_map_seq_find_next() 738 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next() [all …]
|
/linux-6.6.21/drivers/net/ |
D | net_failover.c | 125 primary_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_select_queue() 191 slave_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_get_stats() 198 slave_dev = rcu_dereference(nfo_info->standby_dev); in net_failover_get_stats() 246 slave_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_set_rx_mode() 252 slave_dev = rcu_dereference(nfo_info->standby_dev); in net_failover_set_rx_mode() 268 primary_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_vlan_rx_add_vid() 275 standby_dev = rcu_dereference(nfo_info->standby_dev); in net_failover_vlan_rx_add_vid() 292 slave_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_vlan_rx_kill_vid() 296 slave_dev = rcu_dereference(nfo_info->standby_dev); in net_failover_vlan_rx_kill_vid() 361 struct net_device *dev = rcu_dereference(skb->dev->rx_handler_data); in net_failover_handle_frame() [all …]
|
/linux-6.6.21/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() 67 sptep_atomic = (atomic64_t *)rcu_dereference(sptep); in tdp_mmu_clear_spte_bits()
|
/linux-6.6.21/net/netfilter/ |
D | nf_conntrack_timeout.c | 58 const struct nf_ct_timeout_hooks *h = rcu_dereference(nf_ct_timeout_hook); in __nf_ct_timeout_put() 74 h = rcu_dereference(nf_ct_timeout_hook); in nf_ct_set_timeout() 131 h = rcu_dereference(nf_ct_timeout_hook); in nf_ct_destroy_timeout() 138 t = rcu_dereference(timeout_ext->timeout); in nf_ct_destroy_timeout()
|
D | nf_queue.c | 120 qh = rcu_dereference(nf_queue_handler); in nf_queue_nf_hook_drop() 165 qh = rcu_dereference(nf_queue_handler); in __nf_queue() 282 return rcu_dereference(net->nf.hooks_bridge[hooknum]); in nf_hook_entries_head() 285 return rcu_dereference(net->nf.hooks_ipv4[hooknum]); in nf_hook_entries_head() 287 return rcu_dereference(net->nf.hooks_ipv6[hooknum]); in nf_hook_entries_head()
|
D | nfnetlink_hook.c | 252 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nfnl_hook_entries_head() 257 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nfnl_hook_entries_head() 263 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nfnl_hook_entries_head() 270 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nfnl_hook_entries_head() 287 return rcu_dereference(netdev->nf_hooks_ingress); in nfnl_hook_entries_head() 291 return rcu_dereference(netdev->nf_hooks_egress); in nfnl_hook_entries_head()
|
/linux-6.6.21/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-6.6.21/include/linux/ |
D | if_tunnel.h | 15 for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next))
|
D | netfilter.h | 231 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nf_hook() 234 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nf_hook() 240 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nf_hook() 245 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nf_hook() 325 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in NF_HOOK_LIST() 328 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in NF_HOOK_LIST() 391 nat_hook = rcu_dereference(nf_nat_hook); in nf_nat_decode_session()
|
/linux-6.6.21/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() 553 nhi = rcu_dereference(nhp->nh_info); in nexthop_path_fdb_result()
|
/linux-6.6.21/kernel/module/ |
D | kallsyms.c | 187 rcu_dereference(mod->kallsyms)->symtab = (void *)symsec->sh_addr; in add_kallsyms() 188 rcu_dereference(mod->kallsyms)->num_symtab = symsec->sh_size / sizeof(Elf_Sym); in add_kallsyms() 190 rcu_dereference(mod->kallsyms)->strtab = in add_kallsyms() 192 rcu_dereference(mod->kallsyms)->typetab = init_data_base + info->init_typeoffs; in add_kallsyms() 202 src = rcu_dereference(mod->kallsyms)->symtab; in add_kallsyms() 203 for (ndst = i = 0; i < rcu_dereference(mod->kallsyms)->num_symtab; i++) { in add_kallsyms() 204 rcu_dereference(mod->kallsyms)->typetab[i] = elf_type(src + i, info); in add_kallsyms() 211 rcu_dereference(mod->kallsyms)->typetab[i]; in add_kallsyms() 215 &rcu_dereference(mod->kallsyms)->strtab[src[i].st_name], in add_kallsyms()
|
/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/drivers/pci/ |
D | p2pdma.c | 49 p2pdma = rcu_dereference(pdev->p2pdma); in size_show() 66 p2pdma = rcu_dereference(pdev->p2pdma); in available_show() 83 p2pdma = rcu_dereference(pdev->p2pdma); in published_show() 119 p2pdma = rcu_dereference(pdev->p2pdma); in p2pmem_alloc_mmap() 661 p2pdma = rcu_dereference(provider->p2pdma); in calc_map_type_and_dist() 738 p2pdma = rcu_dereference(pdev->p2pdma); in pci_has_p2pmem() 829 p2pdma = rcu_dereference(pdev->p2pdma); in pci_alloc_p2pmem() 961 p2pdma = rcu_dereference(pdev->p2pdma); in pci_p2pmem_publish() 986 p2pdma = rcu_dereference(provider->p2pdma); in pci_p2pdma_map_type()
|
/linux-6.6.21/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()
|
/linux-6.6.21/kernel/sched/ |
D | membarrier.c | 290 p = rcu_dereference(cpu_rq(cpu)->curr); in membarrier_global_expedited() 363 p = rcu_dereference(cpu_rq(cpu_id)->curr); in membarrier_private_expedited() 376 p = rcu_dereference(cpu_rq(cpu)->curr); in membarrier_private_expedited() 475 p = rcu_dereference(rq->curr); in sync_runqueues_membarrier_state()
|
/linux-6.6.21/fs/nfs/ |
D | delegation.c | 100 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs4_get_valid_delegation() 114 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs4_do_check_delegation() 238 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs_inode_reclaim_delegation() 295 struct nfs_delegation *delegation = rcu_dereference(nfsi->delegation); in nfs_start_delegation_return_locked() 380 delegation = rcu_dereference(nfsi->delegation); in nfs_inode_detach_delegation() 616 delegation = rcu_dereference(NFS_I(place_holder)->delegation); in nfs_server_return_marked_delegations() 928 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs_revoke_delegation() 971 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs_delegation_mark_returned() 1230 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs_inode_mark_test_expired_delegation() 1355 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs_inode_find_delegation_state_and_recover() [all …]
|