函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xa_insert() - Store this entry in the XArray unless another entry is* already present.*@xa: XArray.*@index: Index into array.*@entry: New entry.*@gfp: Memory allocation flags.* Inserting a NULL entry will store a reserved entry (like xa_reserve())

函数原型:static inline int __must_check xa_insert(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct xarray *xa
unsigned longindex
void *entry
gfp_tgfp
770  xa_lock(xa)
771  err等于__xa_insert(xa, index, entry, gfp)
772  xa_unlock(xa)
774  返回:err
调用者
名称描述
xa_insert_index
check_cmpxchg
check_reserve