Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu.c Create Date:2022-07-28 14:26:25
Last Modify:2022-05-23 13:52:24 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pcpu_find_zero_area - modified from bitmap_find_next_zero_area_off()*@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

Proto:static unsigned long pcpu_find_zero_area(unsigned long *map, unsigned long size, unsigned long start, unsigned long nr, unsigned long align_mask, unsigned long *largest_off, unsigned long *largest_bits)

Type:unsigned long

Parameter:

TypeParameterName
unsigned long *map
unsigned longsize
unsigned longstart
unsigned longnr
unsigned longalign_mask
unsigned long *largest_off
unsigned long *largest_bits
1140  again :
1141  index = Find the next zero bit in a memory region.
1144  index = __ALIGN_MASK(index, align_mask)
1145  area_off = index
1147  end = index + nr
1148  If end > size Then Return end
1150  i = Find the next set bit in a memory region.
1151  If i < end Then
1152  area_bits = i - area_off
1161  start = i + 1
1162  Go to again
1164  Return index
Caller
NameDescribe
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