函数逻辑报告

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_set

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

返回类型:void

参数:

类型参数名称
unsigned long *map
unsigned intstart
unsigned intnbits
398  如果__builtin_constant_p(nbits)且nbits恒等于1则__set_bit - Set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* Unlike set_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* succeeds.
400  否则如果__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, 0xff, nbits / 8)
405  否则__bitmap_set(map, start, nbits)
调用者
名称描述
bitmap_set_region
large_bitmap
test_fill_set
test_copy
test_mem_optimisations
test_for_each_set_clump8
iommu_area_alloc
proc_do_large_bitmapproc_do_large_bitmap - read/write from/to a large bitmap*@table: the sysctl table*@write: %TRUE if this is a write to the sysctl file*@buffer: the user buffer*@lenp: the size of the user buffer*@ppos: file position* The bitmap is stored at table->data and
alloc_descs
irq_mark_irq
matrix_alloc_area
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_alloc_first_chunkpcpu_alloc_first_chunk - creates chunks that serve the first chunk*@tmp_addr: the start of the region served*@map_size: size of the region served* This is responsible for creating the chunks that serve the first chunk
pcpu_chunk_populatedpcpu_chunk_populated - post-population bookkeeping*@chunk: pcpu_chunk which got populated*@page_start: the start page*@page_end: the end page* Pages in [@page_start,@page_end) have been populated to @chunk. Update* the bookkeeping information accordingly
subsection_mask_set
cma_allocma_alloc() - allocate pages from contiguous area*@cma: Contiguous memory region for which the allocation is performed
ima_restore_measurement_listRestore the serialized binary measurement list without extending PCRs.