Searched refs:__refcnt (Results 1 – 11 of 11) sorted by relevance
/linux-4.1.27/include/net/ |
D | dst.h | 97 atomic_t __refcnt; /* client references */ member 247 BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63); in dst_hold() 248 atomic_inc(&dst->__refcnt); in dst_hold() 267 atomic_inc(&dst->__refcnt); in dst_clone() 325 return atomic_inc_not_zero(&dst->__refcnt); in dst_hold_safe() 417 if (!atomic_read(&dst->__refcnt)) { in dst_free()
|
D | sock.h | 1714 if (dst && !atomic_inc_not_zero(&dst->__refcnt)) in sk_dst_get()
|
/linux-4.1.27/net/core/ |
D | dst.c | 79 if (likely(atomic_read(&dst->__refcnt))) { in dst_gc_task() 195 atomic_set(&dst->__refcnt, initial_ref); in dst_alloc() 257 if (atomic_dec_and_test(&dst->__refcnt)) { in dst_destroy() 287 newrefcnt = atomic_dec_return(&dst->__refcnt); in dst_release()
|
D | rtnetlink.c | 708 .rta_clntref = atomic_read(&(dst->__refcnt)), in rtnl_put_cacheinfo()
|
/linux-4.1.27/net/bridge/ |
D | br_nf_core.c | 79 atomic_set(&rt->dst.__refcnt, 1); in br_netfilter_rtable_init()
|
/linux-4.1.27/net/ipv6/ |
D | route.c | 254 .__refcnt = ATOMIC_INIT(1), 271 .__refcnt = ATOMIC_INIT(1), 286 .__refcnt = ATOMIC_INIT(1), 1383 atomic_set(&rt->dst.__refcnt, 1); in icmp6_dst_alloc() 1412 if (!atomic_read(&dst->__refcnt)) { in icmp6_dst_gc() 2258 atomic_set(&rt->dst.__refcnt, 1); in addrconf_dst_alloc()
|
D | ip6_fib.c | 1704 if (atomic_read(&rt->dst.__refcnt) == 0 && in fib6_age() 1904 rt->rt6i_metric, atomic_read(&rt->dst.__refcnt), in ipv6_route_seq_show()
|
/linux-4.1.27/net/decnet/ |
D | dn_route.c | 211 if (atomic_read(&rt->dst.__refcnt) || in dn_dst_check_expire() 244 if (atomic_read(&rt->dst.__refcnt) || in dn_dst_gc() 1841 atomic_read(&rt->dst.__refcnt), in dn_rt_cache_seq_show()
|
/linux-4.1.27/net/netfilter/ipvs/ |
D | ip_vs_xmit.c | 293 atomic_read(&rt->dst.__refcnt)); in __ip_vs_get_out_rt() 442 atomic_read(&rt->dst.__refcnt)); in __ip_vs_get_out_rt_v6()
|
/linux-4.1.27/net/ipv4/ |
D | ip_tunnel.c | 112 if (dst && !atomic_inc_not_zero(&dst->__refcnt)) in tunnel_rtable_get()
|
D | udp.c | 2007 if (likely(atomic_inc_not_zero(&dst->__refcnt))) in udp_v4_early_demux()
|