函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:map_find_free_region - find a contiguous aligned mem region*@bitmap: array of unsigned longs corresponding to the bitmap*@bits: number of bits in the bitmap*@order: region size (log base 2 of number of bits) to find* Find a region of free (zero) bits in a

函数原型:int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order)

返回类型:int

参数:

类型参数名称
unsigned long *bitmap
unsigned intbits
intorder
1114 end等于pos加1U左移order位的值小于等于bits循环
1115  如果非__reg_op(bitmap, pos, order, REG_OP_ISFREE)则继续下一循环
1117  __reg_op(bitmap, pos, order, REG_OP_ALLOC)
1118  返回:pos
1120  返回:负ENOMEM
调用者
名称描述
__dma_alloc_from_coherent