Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\ip6_fib.h Create Date:2022-07-28 19:12:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rt6_get_prefsrc

Proto:static inline void rt6_get_prefsrc(const struct rt6_info *rt, struct in6_addr *addr)

Type:void

Parameter:

TypeParameterName
const struct rt6_info *rt
struct in6_addr *addr
462  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
464  from = fetch RCU-protected pointer for dereferencing(from)
465  If from Then
466  addr = addr
467  Else
468  struct in6_addr in6_zero = {}
470  addr = in6_zero
473  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()