函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__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

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

返回类型:struct nlattr

参数:

类型参数名称
struct sk_buff *skb
intattrtype
intattrlen
640  nla等于设置数据在缓存区
641  nla_type等于attrtype
642  nla_len等于不包括填充的属性长度
644  memset((unsignedchar * )nla + nla_len, 0, 属性尾部填充长度)
646  返回:nla
调用者
名称描述
__nla_reserve_64bit__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
nla_reservela_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_put__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