函数逻辑报告

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_order() - Set up XArray operation state for a multislot entry.*@xas: XArray operation state.*@index: Target of the operation.*@order: Entry occupies 2^@order indices.

函数原型:static inline void xas_set_order(struct xa_state *xas, unsigned long index, unsigned int order)

返回类型:void

参数:

类型参数名称
struct xa_state *xas
unsigned longindex
unsigned intorder
1556  xa_index等于如果order小于BITS_PER_LONGindex右移order位左移order位否则0
1557  xa_shift等于orderorder取模The xarray is constructed out of a set of 'chunks' of pointers
1558  xa_sibs等于1左移order取模The xarray is constructed out of a set of 'chunks' of pointers位的值减1
1559  xa_node等于XAS_RESTART
调用者
名称描述
xa_store_rangexa_store_range() - Store this entry at a range of indices in the XArray
page_cache_deleteLock ordering:* ->i_mmap_rwsem (truncate_pagecache)* ->private_lock (__free_pte->__set_page_dirty_buffers)* ->swap_lock (exclusive_swap_page, others)* ->i_pages lock* ->i_mutex* ->i_mmap_rwsem (truncate->unmap_mapping_range)* ->mmap_sem* ->i_mmap_rwsem