函数逻辑报告

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

返回类型:int

参数:

类型参数名称
const struct nlattr *nla
1083  返回:nla_lenNLA_HDRLEN
调用者
名称描述
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字符串比较
parse
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_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