函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sys_acct - enable/disable process accounting*@name: file name for accounting records or NULL to shutdown accounting* Returns 0 for success or negative errno values for failure.* sys_acct() is the only system call needed to implement process* accounting

函数原型:SYSCALL_DEFINE1(acct, const char __user *, name)

返回类型:

参数:

275  error等于0
277  如果非操作权限检查则返回:负EPERM
280  如果name
281  tmp等于getname(name)
283  如果是错误则返回:错误
285  mutex_lock( & acct_on_mutex)
286  error等于acct_on(tmp)
287  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.
288  putname(tmp)
289  否则
290  _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
291  pin_kill(bacct)
294  返回:error