函数逻辑报告

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

函数名称:parent - given the offset of the child, find the offset of the parent

函数原型:__attribute_const__ __always_inline static size_t parent(size_t i, unsigned int lsbit, size_t size)

返回类型:size_t

参数:

类型参数名称
size_ti
unsigned intlsbit
size_tsize
175  i减等于size
176  i减等于size按位与负i按位与lsbit的值
177  返回:i除2
调用者
名称描述
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