函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\xarray.h Create Date:2022-07-27 06:43:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:xa_err() - Turn an XArray result into an errno

函数原型:static inline int xa_err(void *entry)

返回类型:int

参数:

类型参数名称
void *entry
220  如果xa_is_err() - Report whether an XArray operation returned an error*@entry: Result from calling an XArray function* If an XArray operation cannot complete an operation, it will return* a special value indicating an error. This function tells you则返回:entry右移2位
222  返回:0
调用者
名称描述
check_xa_err
xa_reservexa_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
xa_reserve_bhxa_reserve_bh() - Reserve this index in the XArray.*@xa: XArray.*@index: Index into array.*@gfp: Memory allocation flags.* A softirq-disabling version of xa_reserve().* Context: Any context. Takes and releases the xa_lock while* disabling softirqs.
xa_reserve_irqxa_reserve_irq() - Reserve this index in the XArray.*@xa: XArray.*@index: Index into array.*@gfp: Memory allocation flags.* An interrupt-disabling version of xa_reserve().* Context: Process context. Takes and releases the xa_lock while
xas_errorxas_error() - Return an errno stored in the xa_state.*@xas: XArray operation state.* Return: 0 if no error has been noted. A negative errno if one has.