函数逻辑报告

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

函数名称:d the first different bit between two addresses* length of address must be a multiple of 32bits

函数原型:static inline int __ipv6_addr_diff32(const void *token1, const void *token2, int addrlen)

返回类型:int

参数:

类型参数名称
const void *token1
const void *token2
intaddrlen
749  a1等于token1, a2等于token2
752  addrlen右移等于2位
754 i小于addrlen循环
755  xb等于a1[i]按位异或a2[i]
756  如果xb则返回: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  返回:addrlen左移5位
调用者
名称描述
__ipv6_addr_diff