函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:s_aligned - is this pointer & size okay for word-wide copying?*@base: pointer to data*@size: size of each element*@align: required alignment (typically 4 or 8)* Returns true if elements can be copied using word loads and stores

函数原型:__attribute_const__ __always_inline static bool is_aligned(const void *base, size_t size, unsigned char align)

返回类型:bool

参数:

类型参数名称
const void *base
size_tsize
unsigned charalign
35  lsbits等于size
37  base
39  lsbits或等于base
41  返回:lsbits按位与align减1的值恒等于0
调用者
名称描述
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