Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kcmp.c Create Date:2022-07-28 10:36:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:0 - 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)

Proto:static int kcmp_ptr(void *v1, void *v2, enum kcmp_type type)

Type:int

Parameter:

TypeParameterName
void *v1
void *v2
enum kcmp_typetype
54  t1 = kptr_obfuscate((long)v1, type)
55  t2 = kptr_obfuscate((long)v2, type)
57  Return t1 < t2 | (t1 > t2) << 1
Caller
NameDescribe
kcmp_epoll_target
SYSCALL_DEFINE5