Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit.c Create Date:2022-07-28 11:22:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto: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))

Type:int

Parameter:

TypeParameterName
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  When skb = remove from the head of the queue cycle
722  If skb_hook Then ( * skb_hook)(skb)
726  If Not sk Then
727  If err_hook Then ( * err_hook)(skb)
729  Continue
733  skb_get - reference buffer*@skb: buffer to reference* Makes another reference to a socket buffer and returns a pointer* to the buffer.
734  rc = netlink_unicast(sk, skb, portid, 0)
735  If rc < 0 Then
737  If ++failed >= retry_limit || rc == -ECONNREFUSED || rc == -EPERM Then
740  sk = NULL
741  If err_hook Then ( * err_hook)(skb)
743  If Not skb_hook Then Go to out
746  Continue
750  Else
752  consume_skb(skb)
753  failed = 0
757  out :
758  Return If rc >= 0 Then 0 Else rc
Caller
NameDescribe
kauditd_threadkauditd_thread - Worker thread to send audit records to userspace*@dummy: unused