Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_cmp

Proto:static int do_cmp(const void *a, const void *b, cmp_r_func_t cmp, const void *priv)

Type:int

Parameter:

TypeParameterName
const void *a
const void *b
cmp_r_func_tcmp
const void *priv
149  If cmp == _CMP_WRAPPER Then Return ((cmp_func_t)(priv))(a, b)
151  Return cmp(a, b, priv)
Caller
NameDescribe
sort_rsort_r - sort an array of elements*@base: pointer to data to sort*@num: number of elements*@size: size of each element*@cmp_func: pointer to comparison function*@swap_func: pointer to swap function or NULL*@priv: third argument passed to comparison