函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型: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)

返回类型:unsigned long

参数:

类型参数名称
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  返回: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