函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kauditd_send_queue - Helper for kauditd_thread to flush skb queues*@sk: the sending sock*@portid: the netlink destination*@queue: the skb queue to process*@retry_limit: limit on number of netlink unicast failures*@skb_hook: per-skb hook for additional

函数原型:static int kauditd_send_queue(struct sock *sk, unsigned int portid, struct sk_buff_head *queue, unsigned int retry_limit, void (*skb_hook)(struct sk_buff *skb), void (*err_hook)(struct sk_buff *skb))

返回类型:int

参数:

类型参数名称
struct sock *sk
unsigned intportid
struct sk_buff_head *queue
unsigned intretry_limit
void (*skb_hook
void (*err_hook
713  rc等于0
715  failed等于0
720 skb等于从队列头移除循环
722  如果skb_hook则( * skb_hook)(skb)
726  如果非sk
727  如果err_hook则( * err_hook)(skb)
729  继续下一循环
733  引用缓存
734  rc等于netlink_unicast(sk, skb, portid, 0)
735  如果rc小于0则
737  如果failed先自加大于等于retry_limitrc恒等于负ECONNREFUSEDrc恒等于负EPERM
740  sk = NULL
741  如果err_hook则( * err_hook)(skb)
743  如果非skb_hook则转到:out
746  继续下一循环
750  否则
752  consume_skb(skb)
753  failed等于0
757  out :
758  返回:如果rc大于等于0则0否则rc
调用者
名称描述
kauditd_threadkauditd_thread - Worker thread to send audit records to userspace*@dummy: unused