函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:la_put - Add a netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@attrlen: length of attribute payload*@data: head of attribute payload* Returns -EMSGSIZE if the tailroom of the skb is insufficient to

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

返回类型:int

参数:

类型参数名称
struct sk_buff *skb
intattrtype
intattrlen
const void *data
831  如果此条件成立可能性小(为编译器优化)(缓存区尾部字节 < 属性的总长度,包括填充)则返回:负EMSGSIZE
834  __nla_put - Add a netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@attrlen: length of attribute payload*@data: head of attribute payload* The caller is responsible to ensure that the skb provides
835  返回:0
调用者
名称描述
mk_reply
nla_put_u8la_put_u8 - Add a u8 netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value
nla_put_u16la_put_u16 - Add a u16 netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value
nla_put_be16la_put_be16 - Add a __be16 netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value
nla_put_le16la_put_le16 - Add a __le16 netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value
nla_put_u32la_put_u32 - Add a u32 netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value
nla_put_be32la_put_be32 - Add a __be32 netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value
nla_put_le32la_put_le32 - Add a __le32 netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value
nla_put_s8la_put_s8 - Add a s8 netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value
nla_put_s16la_put_s16 - Add a s16 netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value
nla_put_s32la_put_s32 - Add a s32 netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value
nla_put_string添加一个字符串属性为Netlink套接字缓冲区
nla_put_flag添加标志该属性设置为一个套接字缓冲区
nla_put_in6_addr添加一个IPv6地址Netlink属性插座
nla_nest_start_noflagla_nest_start_noflag - Start a new level of nested attributes*@skb: socket buffer to add attributes to*@attrtype: attribute type of container* This function exists for backward compatibility to use in APIs which never
xfrm_mark_put