Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\ipv6.h Create Date:2022-07-28 06:11:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:d the first different bit between two addresses* length of address must be a multiple of 32bits

Proto:static inline int __ipv6_addr_diff32(const void *token1, const void *token2, int addrlen)

Type:int

Parameter:

TypeParameterName
const void *token1
const void *token2
intaddrlen
749  a1 = token1 , a2 = token2
752  addrlen >>= 2
754  When i < addrlen cycle
755  xb = a1[i] ^ a2[i]
756  If xb Then Return i * 32 + 31 - __fls: find last set bit in word*@word: The word to search* Undefined if no set bit exists, so code should check against 0 first.
776  Return addrlen << 5