Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:net_generic

Proto:static inline void *net_generic(const struct net *net, unsigned int id)

Type:void

Parameter:

TypeParameterName
const struct net *net
unsigned intid
44  _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
45  ng = fetch RCU-protected pointer for dereferencing(gen)
46  ptr = ptr[id]
47  _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()
49  Return ptr
Caller
NameDescribe
audit_get_skaudit_get_sk - Return the audit socket for the given network namespace*@net: the destination network namespace* Description:* Returns the sock pointer if valid, NULL otherwise. The caller must ensure
audit_net_init
audit_net_exit
locks_start_gracelocks_start_grace*@net: net namespace that this lock manager belongs to*@lm: who this grace period is for* A grace period is a period during which locks should not be given* out
__state_in_grace
grace_init_net
grace_exit_net