函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:la_reserve_64bit - reserve room for attribute on the skb and align it*@skb: socket buffer to reserve room on*@attrtype: attribute type*@attrlen: length of attribute payload*@padattr: attribute type for the padding* Adds a netlink attribute header to a

函数原型:struct nlattr *nla_reserve_64bit(struct sk_buff *skb, int attrtype, int attrlen, int padattr)

返回类型:struct nlattr

参数:

类型参数名称
struct sk_buff *skb
intattrtype
intattrlen
intpadattr
730  如果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.len等于la_total_size_64bit - total length of attribute including padding*@payload: length of payload
732  否则len等于属性的总长度,包括填充
734  如果此条件成立可能性小(为编译器优化)(缓存区尾部字节 < len)则返回:NULL
737  返回:__nla_reserve_64bit - reserve room for attribute on the skb and align it*@skb: socket buffer to reserve room on*@attrtype: attribute type*@attrlen: length of attribute payload*@padattr: attribute type for the padding* Adds a netlink attribute header to a
调用者
名称描述
mk_reply