Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\cma_debug.c Create Date:2022-07-28 16:32:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cma_maxchunk_get

Proto:static int cma_maxchunk_get(void *data, u64 *val)

Type:int

Parameter:

TypeParameterName
void *data
u64 *val
51  cma = data
52  maxchunk = 0
53  end = 0
54  bitmap_maxno = cma_bitmap_maxno(cma)
56  mutex_lock( & lock)
57  cycle
58  start = Find the next zero bit in a memory region.
59  If start >= bitmap_maxno Then Break
61  end = Find the next set bit in a memory region.
62  maxchunk = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(end - start, maxchunk)
64  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
65  val = maxchunk << Order of pages represented by one bit
67  Return 0