函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\acct.c Create Date:2022-07-27 12:02:01
Last Modify:2020-03-17 15:14:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:acct_get

函数原型:static struct bsd_acct_struct *acct_get(struct pid_namespace *ns)

返回类型:struct bsd_acct_struct

参数:

类型参数名称
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  如果非res
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  返回:NULL
155  如果非atomic_long_inc_not_zero( & count)则
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  转到: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  如果res不等于to_acct(READ_ONCE(bacct))则
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  转到:again
167  返回:res
调用者
名称描述
slow_acct_process