Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:We should always be able to store without allocating memory after* reserving a slot.

Proto:static void check_align_2(struct xarray *xa, char *name)

Type:void

Parameter:

TypeParameterName
struct xarray *xa
char *name
1477  XA_BUG_ON(xa, !xa_empty() - Determine if an array has any present entries.*@xa: XArray.* Context: Any context.* Return: %true if the array contains only NULL pointers.)
1479  When i < 8 cycle
1480  XA_BUG_ON(xa, xa_store() - Store this entry in the XArray.*@xa: XArray.*@index: Index into array.*@entry: New entry.*@gfp: Memory allocation flags.* After this function returns, loads from this index will return @entry. != NULL)
1481  xa_erase() - Erase this entry from the XArray.*@xa: XArray.*@index: Index of entry.* After this function returns, loading from @index will return %NULL.* If the index is part of a multi-index entry, all indices will be erased
1484  When i < 8 cycle
1485  XA_BUG_ON(xa, xa_reserve() - Reserve this index in the XArray.*@xa: XArray.*@index: Index into array.*@gfp: Memory allocation flags.* Ensures there is somewhere to store an entry at @index in the array.* If there is already something stored at @index, this function does != 0)
1486  XA_BUG_ON(xa, xa_store() - Store this entry in the XArray.*@xa: XArray.*@index: Index into array.*@entry: New entry.*@gfp: Memory allocation flags.* After this function returns, loads from this index will return @entry. != NULL)
1487  xa_erase() - Erase this entry from the XArray.*@xa: XArray.*@index: Index of entry.* After this function returns, loading from @index will return %NULL.* If the index is part of a multi-index entry, all indices will be erased
1490  XA_BUG_ON(xa, !xa_empty() - Determine if an array has any present entries.*@xa: XArray.* Context: Any context.* Return: %true if the array contains only NULL pointers.)
Caller
NameDescribe
check_align