Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\ktime.h Create Date:2022-07-28 05:35:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ktime_compare - Compares two ktime_t variables for less, greater or equal*@cmp1: comparable1*@cmp2: comparable2* Return: ...* cmp1 < cmp2: return <0* cmp1 == cmp2: return 0* cmp1 > cmp2: return >0

Proto:static inline int ktime_compare(const ktime_t cmp1, const ktime_t cmp2)

Type:int

Parameter:

TypeParameterName
const ktime_tcmp1
const ktime_tcmp2
114  If cmp1 < cmp2 Then Return -1
116  If cmp1 > cmp2 Then Return 1
118  Return 0
Caller
NameDescribe
ktime_afterktime_after - Compare if a ktime_t value is bigger than another one.*@cmp1: comparable1*@cmp2: comparable2* Return: true if cmp1 happened after cmp2.
ktime_beforektime_before - Compare if a ktime_t value is smaller than another one.*@cmp1: comparable1*@cmp2: comparable2* Return: true if cmp1 happened before cmp2.