函数逻辑报告

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 void *nla_data(const struct nlattr *nla)

返回类型:void

参数:

类型参数名称
const struct nlattr *nla
1074  返回:nlaNLA_HDRLEN
调用者
名称描述
validate_nla_bitfield32
nla_validate_array
validate_nla
nla_strlcpyla_strlcpy - Copy string attribute payload into a sized buffer*@dst: where to copy the string to*@nla: attribute to copy the string from*@dstsize: size of destination buffer* Copies at most dstsize - 1 bytes into the destination buffer.
nla_strdupla_strdup - Copy string attribute payload into a newly allocated buffer*@nla: attribute to copy the string from*@flags: the type of memory to allocate (see kmalloc).* Returns a pointer to the allocated buffer or NULL on error.
nla_memcpyla_memcpy - Copy a netlink attribute into another memory area*@dest: where to copy to memcpy*@src: netlink attribute to copy from*@count: size of the destination area* Note: The number of bytes copied is limited by the length of* attribute's payload
nla_memcmp内存比较
nla_strcmp字符串比较
__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
__nla_put_64bit__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*
mk_reply
cgroupstats_user_cmd
nla_find_nested在一组嵌套属性中查找属性
nla_parse_nestedla_parse_nested - parse nested attributes*@tb: destination array with maxtype+1 elements*@maxtype: maximum attribute type to be expected*@nla: attribute containing the nested attributes*@policy: validation policy*@extack: extended ACK report struct* See
nla_parse_nested_deprecatedla_parse_nested_deprecated - parse nested attributes*@tb: destination array with maxtype+1 elements*@maxtype: maximum attribute type to be expected*@nla: attribute containing the nested attributes*@policy: validation policy*@extack: extended ACK report
nla_get_u32返回U32属性的有效载荷
nla_get_be32返回__be32属性的有效载荷
nla_get_le32la_get_le32 - return payload of __le32 attribute*@nla: __le32 netlink attribute
nla_get_u16返回U16属性的有效载荷
nla_get_be16返回__be16属性的有效载荷
nla_get_le16返回__le16属性的有效载荷
nla_get_u8返回U8属性的有效载荷
nla_get_le64la_get_le64 - return payload of __le64 attribute*@nla: __le64 netlink attribute
nla_get_s32返回s32属性的有效载荷
nla_get_s16返回s16属性的有效载荷
nla_get_s8返回s8属性的有效载荷
nla_get_in_addr返回IPv4地址属性的有效载荷
nla_memdupla_memdup - duplicate attribute memory (kmemdup)*@src: netlink attribute to duplicate from*@gfp: GFP mask
__nla_validate_nestedla_validate_nested - Validate a stream of nested attributes*@start: container attribute*@maxtype: maximum attribute type to be expected*@policy: validation policy*@validate: validation strictness*@extack: extended ACK report struct* Validates all
xfrm_mark_get