Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bitmap.h Create Date:2022-07-28 05:34:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bitmap_clear

Proto:static __always_inline void bitmap_clear(unsigned long *map, unsigned int start, unsigned int nbits)

Type:void

Parameter:

TypeParameterName
unsigned long *map
unsigned intstart
unsigned intnbits
412  If __builtin_constant_p(nbits) && nbits == 1 Then __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  Else if __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) Then memset((char * )map + start / 8, 0, nbits / 8)
419  Else __bitmap_clear(map, start, nbits)
Caller
NameDescribe
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