Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order)

Type:int

Parameter:

TypeParameterName
unsigned long *bitmap
unsigned intbits
intorder
1114  When (end = pos + (1U << order) ) <= bits cycle
1115  If Not __reg_op(bitmap, pos, order, REG_OP_ISFREE) Then Continue
1117  __reg_op(bitmap, pos, order, REG_OP_ALLOC)
1118  Return pos
1120  Return -ENOMEM