函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Format 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

函数原型:static void audit_log_vformat(struct audit_buffer *ab, const char *fmt, va_list args)

返回类型:void

参数:

类型参数名称
struct audit_buffer *ab
const char *fmt
va_listargs
1845  如果非ab则返回
1848  BUG_ON(!rmatted skb ready to send )
1849  skb等于rmatted skb ready to send
1850  avail等于缓存区尾部字节
1851  如果avail恒等于0则
1852  avail等于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.
1853  如果非avail则转到:out
1856  va_copy(args2, args)
1857  len等于vsnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@args: Arguments for the format string* This function generally
1858  如果len大于等于avail
1862  avail等于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.
1864  如果非avail则转到:out_va_end
1866  len等于vsnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@args: Arguments for the format string* This function generally
1868  如果len大于0则设置数据在缓存区
1870  out_va_end :
1871  va_end(args2)
1872  out :
1873  返回
调用者
名称描述
audit_log_format写入审计信息
audit_logaudit_log - Log an audit record*@ctx: audit context*@gfp_mask: type of allocation*@type: audit message type*@fmt: format string to use*@...: variable parameters matching the format string* This is a convenience function that calls audit_log_start,