Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\acct.c Create Date:2022-07-28 11:00:57
Last Modify:2020-03-17 15:14:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:acct_get

Proto:static struct bsd_acct_struct *acct_get(struct pid_namespace *ns)

Type:struct bsd_acct_struct

Parameter:

TypeParameterName
struct pid_namespace *ns
147  again :
148  smp_rmb()
149  _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
150  res = to_acct(READ_ONCE(bacct))
151  If Not res Then
152  _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()
153  Return NULL
155  If Not atomic_long_inc_not_zero( & count) Then
156  _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()
157  cpu_relax()
158  Go to again
160  _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()
161  mutex_lock( & lock)
162  If res != to_acct(READ_ONCE(bacct)) Then
163  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
164  acct_put(res)
165  Go to again
167  Return res
Caller
NameDescribe
slow_acct_process