Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cma_alloc_mem

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

Type:int

Parameter:

TypeParameterName
struct cma *cma
intcount
136  mem = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
137  If Not mem Then Return -ENOMEM
140  p = ma_alloc() - allocate pages from contiguous area*@cma: Contiguous memory region for which the allocation is performed
141  If Not p Then
142  kfree(mem)
143  Return -ENOMEM
146  p = p
147  n = count
149  cma_add_to_cma_mem_list(cma, mem)
151  Return 0
Caller
NameDescribe
cma_alloc_write