Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:__attribute_const__ __always_inline static bool is_aligned(const void *base, size_t size, unsigned char align)

Type:bool

Parameter:

TypeParameterName
const void *base
size_tsize
unsigned charalign
35  lsbits = size
37  base
39  lsbits |= base
41  Return (lsbits & align - 1 ) == 0
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