Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cma_free_mem

Proto:static int cma_free_mem(struct cma *cma, int count)

Type:int

Parameter:

TypeParameterName
struct cma *cma
intcount
94  struct cma_mem * mem = NULL
96  When count cycle
97  mem = cma_get_entry_from_list(cma)
98  If (mem == NULL) Then Return 0
101  If n <= count Then
103  count -= n
104  kfree(mem)
107  p += count
108  n -= count
109  count = 0
111  Else
112  pr_debug("cma: cannot release partial block when order_per_bit != 0\n")
114  Break
118  Return 0
Caller
NameDescribe
cma_free_write