Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:reuseport_has_conns

Proto:static inline bool reuseport_has_conns(struct sock *sk, bool set)

Type:bool

Parameter:

TypeParameterName
struct sock *sk
boolset
44  bool ret = false
46  _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
47  reuse = fetch RCU-protected pointer for dereferencing(sk_reuseport_cb)
48  If reuse Then
49  If set Then has_conns = 1
51  ret = has_conns
53  _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()
55  Return ret