函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kptr_obfuscate

函数原型:static long kptr_obfuscate(long v, int type)

返回类型:long

参数:

类型参数名称
longv
inttype
41  返回:v按位异或We don't expose the real in-memory order of objects for security reasons.* But still the comparison results should be suitable for sorting. So we* obfuscate kernel pointers values and compare the production instead.* The obfuscation is done in two steps[type][0]的值乘We don't expose the real in-memory order of objects for security reasons.* But still the comparison results should be suitable for sorting. So we* obfuscate kernel pointers values and compare the production instead.* The obfuscation is done in two steps[type][1]
调用者
名称描述
kcmp_ptr0 - equal, i.e. v1 = v2* 1 - less than, i.e. v1 < v2* 2 - greater than, i.e. v1 > v2* 3 - not equal but ordering unavailable (reserved for future)