函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bitmap_clear

函数原型:static __always_inline void bitmap_clear(unsigned long *map, unsigned int start, unsigned int nbits)

返回类型:void

参数:

类型参数名称
unsigned long *map
unsigned intstart
unsigned intnbits
412  如果__builtin_constant_p(nbits)且nbits恒等于1则__clear_bit - Clears a bit in memory*@nr: the bit to clear*@addr: the address to start counting from* Unlike clear_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation
414  否则如果__builtin_constant_p(start & BITMAP_MEM_MASK)且IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT)且__builtin_constant_p(nbits & BITMAP_MEM_MASK)且IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)则memset((char * )map + start / 8, 0, nbits / 8)
419  否则__bitmap_clear(map, start, nbits)
调用者
名称描述
xas_squash_marksxas_squash_marks() - Merge all marks to the first entry*@xas: Array operation state.* Set a mark on the first entry if any entry has it set. Clear marks on* all sibling entries.
test_zero_clear
test_mem_optimisations
cbm_ensure_validbm_ensure_valid - Enforce validity on provided CBM*@_val: Candidate CBM*@r: RDT resource to which the CBM belongs* The provided CBM represents all cache portions available for use
free_iommu
irq_free_descsq_free_descs - free irq descriptors*@from: Start of descriptor range*@cnt: Number of consecutive irqs to free
pcpu_alloc_areapcpu_alloc_area - allocates an area from a pcpu_chunk*@chunk: chunk of interest*@alloc_bits: size of request in allocation units*@align: alignment of area (max PAGE_SIZE)*@start: bit_off to start searching* This function takes in a @start offset to begin
pcpu_free_areapcpu_free_area - frees the corresponding offset*@chunk: chunk of interest*@off: addr offset into chunk* This function determines the size of an allocation to free using* the boundary bitmap and clears the allocation map.
pcpu_chunk_depopulatedpcpu_chunk_depopulated - post-depopulation bookkeeping*@chunk: pcpu_chunk which got depopulated*@page_start: the start page*@page_end: the end page* Pages in [@page_start,@page_end) have been depopulated from @chunk.
cma_clear_bitmap