函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:audit_buffer_alloc

函数原型:static struct audit_buffer *audit_buffer_alloc(struct audit_context *ctx, gfp_t gfp_mask, int type)

返回类型:struct audit_buffer

参数:

类型参数名称
struct audit_context *ctx
gfp_tgfp_mask
inttype
1678  ab等于kmem_cache_alloc(audit_buffer_cache, gfp_mask)
1679  如果非ab则返回:NULL
1682  rmatted skb ready to send 等于分配一个新的Netlink消息
1683  如果非rmatted skb ready to send 则转到:err
1685  如果非lmsg_put - Add a new netlink message to an skb*@skb: socket buffer to store message in*@portid: netlink PORTID of requesting application*@seq: sequence number of message*@type: message type*@payload: length of message payload*@flags: message flags* 则转到:err
1688  NULL or associated context 等于ctx
1689  gfp_mask等于gfp_mask
1691  返回:ab
1693  err :
1694  audit_buffer_free(ab)
1695  返回:NULL
调用者
名称描述
audit_log_start申请审计缓冲区