Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data)

Type:int

Parameter:

TypeParameterName
struct sk_buff *skb
intattrtype
intattrlen
const void *data
831  If Value for the false possibility is greater at compile time(skb_tailroom - bytes at buffer end*@skb: buffer to check* Return the number of bytes of free space at the tail of an sk_buff < la_total_size - total length of attribute including padding*@payload: length of payload) Then Return -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  Return 0
Caller
NameDescribe
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_stringla_put_string - Add a string netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@str: NUL terminated string
nla_put_flagla_put_flag - Add a flag netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type
nla_put_in6_addrla_put_in6_addr - Add an IPv6 address netlink attribute to a socket* buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@addr: IPv6 address
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