Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:la_put_64bit - Add a netlink attribute to a socket buffer and align it*@skb: socket buffer to add attribute to*@attrtype: attribute type*@attrlen: length of attribute payload*@data: head of attribute payload*@padattr: attribute type for the padding*

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

Type:int

Parameter:

TypeParameterName
struct sk_buff *skb
intattrtype
intattrlen
const void *data
intpadattr
855  If la_need_padding_for_64bit - test 64-bit alignment of the next attribute*@skb: socket buffer the message is stored in* Return true if padding is needed to align the next attribute (nla_data()) to* a 64-bit aligned area. Then len = la_total_size_64bit - total length of attribute including padding*@payload: length of payload
857  Else len = la_total_size - total length of attribute including padding*@payload: length of payload
859  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 < len) Then Return -EMSGSIZE
862  __nla_put_64bit - Add a netlink attribute to a socket buffer and align it*@skb: socket buffer to add attribute to*@attrtype: attribute type*@attrlen: length of attribute payload*@data: head of attribute payload*@padattr: attribute type for the padding*
863  Return 0
Caller
NameDescribe
nla_put_u64_64bitla_put_u64_64bit - Add a u64 netlink attribute to a skb and align it*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value*@padattr: attribute type for the padding
nla_put_be64la_put_be64 - Add a __be64 netlink attribute to a socket buffer and align it*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value*@padattr: attribute type for the padding
nla_put_le64la_put_le64 - Add a __le64 netlink attribute to a socket buffer and align it*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value*@padattr: attribute type for the padding
nla_put_s64la_put_s64 - Add a s64 netlink attribute to a socket buffer and align it*@skb: socket buffer to add attribute to*@attrtype: attribute type*@value: numeric value*@padattr: attribute type for the padding
nla_put_msecsla_put_msecs - Add a msecs netlink attribute to a skb and align it*@skb: socket buffer to add attribute to*@attrtype: attribute type*@njiffies: number of jiffies to convert to msecs*@padattr: attribute type for the padding