函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int nla_memcpy(void *dest, const struct nlattr *src, int count)

返回类型:int

参数:

类型参数名称
void *dest
const struct nlattr *src
intcount
572  minlen等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, count, 有效载荷的长度)
574  内存复制(dest, 有效载荷的头部, minlen)
575  如果count大于minlenmemset(dest + minlen, 0, count - minlen)
578  返回:minlen
调用者
名称描述
nla_get_u64返回U64属性的有效载荷
nla_get_be64返回__be16属性的有效载荷
nla_get_s64返回s64属性的有效载荷
nla_get_in6_addr返回的IPv6地址属性的有效载荷
nla_get_bitfield32la_get_bitfield32 - return payload of 32 bitfield attribute*@nla: nla_bitfield32 attribute