函数逻辑报告

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_fixed_alloc - reserve a specific region*@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*@data: data for alignment*@pool: pool to

函数原型:unsigned long gen_pool_fixed_alloc(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
698  fixed_data等于data
699  order等于 minimum allocation order
700  offset_bit等于The offset of the specific region 右移order
701  如果WARN_ON(The offset of the specific region & ((1UL << order) - 1))则返回:size
704  start_bit等于map_find_next_zero_area - 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 mask
706  如果start_bit不等于offset_bitstart_bit等于size
708  返回:start_bit