Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cma_used_get

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

Type:int

Parameter:

TypeParameterName
void *data
u64 *val
36  cma = data
39  mutex_lock( & lock)
41  used = bitmap_weight(bitmap, (int)cma_bitmap_maxno(cma))
42  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.
43  val = used << Order of pages represented by one bit
45  Return 0