Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:SYSCALL_DEFINE1(acct, const char __user *, name)

Type:

Parameter:Nothing

275  error = 0
277  If Not Check operation authority Then Return -EPERM
280  If name Then
281  tmp = getname(name)
283  If IS_ERR(tmp) Then Return PTR_ERR(tmp)
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  Else
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  Return error