函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xas_set_err() - Note an error in the xa_state.*@xas: XArray operation state.*@err: Negative error number.* Only call this function with a negative @err; zero or positive errors* will probably not behave the way you think they should. If you want

函数原型:static inline void xas_set_err(struct xa_state *xas, long err)

返回类型:void

参数:

类型参数名称
struct xa_state *xas
longerr
1401  xa_node等于We encode errnos in the xas->xa_node. If an error has happened, we need to* drop the lock to fix it, and once we've done so the xa_state is invalid.(err)
调用者
名称描述
xas_alloc
__xa_insert__xa_insert() - Store this entry in the XArray if no entry is 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())* if no entry is present
__xa_alloc
check_create_range_3
__add_to_page_cache_locked
grab_mapping_entryFind page cache entry at given index. If it is a DAX entry, return it* with the entry locked. If the page cache doesn't contain an entry at* that index, add a locked empty entry.* When requesting an entry with size DAX_PMD, grab_mapping_entry() will
__xa_alloc__xa_alloc() - Find somewhere to store this entry in the XArray