函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:audit_rate_check

函数原型:static inline int audit_rate_check(void)

返回类型:int

参数:

313  last_check等于0
314  messages等于0
315  DEFINE_SPINLOCK(lock)
319  retval等于0
321  如果非If audit_rate_limit is non-zero, limit the rate of sending audit records* to that number per second. This prevents DoS attacks, but results in* audit records being dropped. 则返回:1
323  spin_lock_irqsave( & lock, flags)
324  如果messages先自加小于If audit_rate_limit is non-zero, limit the rate of sending audit records* to that number per second. This prevents DoS attacks, but results in* audit records being dropped.
325  retval等于1
326  否则
327  now等于jiffies
328  elapsed等于nowlast_check
329  如果elapsed大于HZ
330  last_check等于now
331  messages等于0
332  retval等于1
335  spin_unlock_irqrestore( & lock, flags)
337  返回:retval
调用者
名称描述
audit_log_start申请审计缓冲区
audit_log_end发送审计信息,并释放缓冲区