Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\genalloc.c Create Date:2022-07-28 06:57:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:gen_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

Proto:unsigned long gen_pool_first_fit_align(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, void *data, struct gen_pool *pool, unsigned long start_addr)

Type:unsigned long

Parameter:

TypeParameterName
unsigned long *map
unsigned longsize
unsigned longstart
unsigned intnr
void *data
struct gen_pool *pool
unsigned longstart_addr
670  alignment = data
671  order = minimum allocation order
672  align_mask = ( alignment by bytes for starting address + (1UL << order) - 1 >> order) - 1
673  align_off = (start_addr & alignment by bytes for starting address - 1 ) >> order
675  Return 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