函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\netlink.h Create Date:2022-07-27 07:04:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:不包括填充的属性长度

函数原型:static inline int nla_attr_size(int payload)

返回类型:int

参数:

类型参数名称
intpayload
1038  返回:NLA_HDRLENpayload
调用者
名称描述
__nla_reserve__nla_reserve - reserve room for attribute on the skb*@skb: socket buffer to reserve room on*@attrtype: attribute type*@attrlen: length of attribute payload* Adds a netlink attribute header to a socket buffer and reserves
nla_total_size属性的总长度,包括填充
nla_padlen属性尾部填充长度
nla_total_size_64bitla_total_size_64bit - total length of attribute including padding*@payload: length of payload