函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ipv6_portaddr_hash

函数原型:static inline u32 ipv6_portaddr_hash(const struct net *net, const struct in6_addr *addr6, unsigned int port)

返回类型:u32

参数:

类型参数名称
const struct net *net
const struct in6_addr *addr6
unsigned intport
708  mix等于net_hash_mix(net)
710  如果ipv6_addr_any(addr6)则hash等于jhash_1word(0, mix)
712  否则如果Note that we must __force cast these to unsigned long to make sparse happy,* since all of the endian-annotated types are fixed size regardless of arch.hash等于jhash_1word((__forceu32)s6_addr32[3], mix)
714  否则hash等于jhash2 - hash an array of u32's*@k: the key which must be an array of u32's*@length: the number of u32's in the key*@initval: the previous hash, or an arbitray value* Returns the hash value of the key.
717  返回:hash按位异或port