函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_cmp

函数原型:static int do_cmp(const void *a, const void *b, cmp_r_func_t cmp, const void *priv)

返回类型:int

参数:

类型参数名称
const void *a
const void *b
cmp_r_func_tcmp
const void *priv
149  如果cmp恒等于_CMP_WRAPPER则返回:((cmp_func_t)(priv))(a, b)
151  返回:cmp(a, b, priv)
调用者
名称描述
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