Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct sock * | sk | |
unsigned int | portid | |
struct sk_buff_head * | queue | |
unsigned int | retry_limit | |
void (* | skb_hook | |
void (* | err_hook |
713 | rc = 0 |
715 | failed = 0 |
720 | When skb = remove from the head of the queue cycle |
726 | If Not sk Then |
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 |
746 | Continue |
747 | Else queue a buffer at the list head |
750 | Else |
752 | consume_skb(skb) |
753 | failed = 0 |
757 | out : |
Name | Describe |
---|---|
kauditd_thread | kauditd_thread - Worker thread to send audit records to userspace*@dummy: unused |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |