函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:la_append - Add a netlink attribute without header or padding*@skb: socket buffer to add attribute to*@attrlen: length of attribute payload*@data: head of attribute payload* Returns -EMSGSIZE if the tailroom of the skb is insufficient to store

函数原型:int nla_append(struct sk_buff *skb, int attrlen, const void *data)

返回类型:int

参数:

类型参数名称
struct sk_buff *skb
intattrlen
const void *data
897  如果此条件成立可能性小(为编译器优化)(缓存区尾部字节 < NLA_ALIGN(attrlen))则返回:负EMSGSIZE
900  skb_put_data(skb, data, attrlen)
901  返回:0