函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Initialize audit support at boot time.

函数原型:static int __init audit_init(void)

返回类型:int

参数:

1579  如果audit_initialized恒等于不审计则返回:0
1582  audit_buffer_cache等于创建高速缓存区
1586  This function creates a split out lock class for each invocation;* this is needed for now since a whole lot of users of the skb-queue* infrastructure in drivers have different locking usage (in hardirq)* than the networking core (in softirq only)
1587  This function creates a split out lock class for each invocation;* this is needed for now since a whole lot of users of the skb-queue* infrastructure in drivers have different locking usage (in hardirq)* than the networking core (in softirq only)
1588  This function creates a split out lock class for each invocation;* this is needed for now since a whole lot of users of the skb-queue* infrastructure in drivers have different locking usage (in hardirq)* than the networking core (in softirq only)
1590 i小于AUDIT_INODE_BUCKETS循环初始化链表头
1593  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & lock)
1594  owner = NULL
1596  打印信息("initializing netlink subsys (%s)\n", Default state when kernel boots without any parameters. ? "enabled" : "disabled")
1598  Use these carefully
1600  audit_initialized等于AUDIT_INITIALIZED
1602  queue servicing thread 等于kthread_run - create and wake a thread.*@threadfn: the function to run until signal_pending(current).*@data: data ptr for @threadfn.*@namefmt: printf-style name for the thread.* Description: Convenient wrapper for kthread_create() followed by(kauditd_thread - Worker thread to send audit records to userspace*@dummy: unused, NULL, "kauditd")
1603  如果是错误
1604  err等于错误
1605  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
1608  audit_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,
1612  返回:0