函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:audit_expand - expand skb in the audit buffer*@ab: audit_buffer*@extra: space to add at tail of the skb* Returns 0 (no space) on failed expansion, or available space if* successful.

函数原型:static inline int audit_expand(struct audit_buffer *ab, int extra)

返回类型:int

参数:

类型参数名称
struct audit_buffer *ab
intextra
1818  skb等于rmatted skb ready to send
1819  oldtail等于缓存区尾部字节
1820  ret等于重新分配sk_buff头
1821  newtail等于缓存区尾部字节
1823  如果ret小于0则
1824  audit_log_lost - conditionally log lost audit message event*@message: the message stating reason for lost audit message* Emit at least 1 message per second, even if audit_rate_check is* throttling.* Always increment the lost messages counter.
1825  返回:0
1828  truesize加等于newtailoldtail
1829  返回:newtail
调用者
名称描述
audit_log_vformatFormat an audit message into the audit buffer. If there isn't enough* room in the audit buffer, more room will be allocated and vsnprint* will be called a second time. Currently, we assume that a printk
audit_log_n_hexaudit_log_n_hex - convert a buffer to hex and append it to the audit skb*@ab: the audit_buffer*@buf: buffer to convert to hex*@len: length of @buf to be converted* No return value; failure to expand is silently ignored
audit_log_n_stringFormat a string of no more than slen characters into the audit buffer,* enclosed in quote marks.