函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:map_find_next_zero_area_off - find a contiguous aligned zero area*@map: The address to base the search on*@size: The bitmap size in bits*@start: The bitnumber to start searching at*@nr: The number of zeroed bits we're looking for*@align_mask: Alignment

函数原型:unsigned long bitmap_find_next_zero_area_off(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask, unsigned long align_offset)

返回类型:unsigned long

参数:

类型参数名称
unsigned long *map
unsigned longsize
unsigned longstart
unsigned intnr
unsigned longalign_mask
unsigned longalign_offset
345  again :
346  index等于d_next_zero_bit - find the next cleared bit in a memory region*@addr: The address to base the search on*@offset: The bitnumber to start searching at*@size: The bitmap size in bits* Returns the bit number of the next zero bit
349  index等于__ALIGN_MASK(index + align_offset, align_mask)减align_offset
351  end等于indexnr
352  如果end大于size则返回:end
354  i等于d_next_bit - find the next set bit in a memory region*@addr: The address to base the search on*@offset: The bitnumber to start searching at*@size: The bitmap size in bits* Returns the bit number for the next set bit* If no bits are set, returns @size.
355  如果i小于end
356  start等于i加1
357  转到:again
359  返回:index
调用者
名称描述
gen_pool_first_fit_aligngen_pool_first_fit_align - find the first available region* of memory matching the size requirement (alignment constraint)*@map: The address to base the search on*@size: The bitmap size in bits*@start: The bitnumber to start searching at*@nr: The number
cma_allocma_alloc() - allocate pages from contiguous area*@cma: Contiguous memory region for which the allocation is performed