函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:audit_list_rules_send - list the audit rules*@request_skb: skb of request we are replying to (used to target the reply)*@seq: netlink audit message sequence (serial) number

函数原型:int audit_list_rules_send(struct sk_buff *request_skb, int seq)

返回类型:int

参数:

类型参数名称
struct sk_buff *request_skb
intseq
1164  portid等于portid
1165  net等于sock_net(sk)
1168  err等于0
1176  dest等于开辟内存
1177  如果非dest则返回:负ENOMEM
1179  net等于get_net(net)
1180  portid等于portid
1181  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)
1183  mutex_lock( & audit_filter_mutex)
1184  List rules using struct audit_rule_data.
1185  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.
1187  tsk等于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(audit_send_list, dest, "audit_send_list")
1188  如果是错误
1189  置空队列
1190  kfree(dest)
1191  err等于错误
1194  返回:err
调用者
名称描述
audit_receive_msg