函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\virt.c Create Date:2022-07-27 11:33:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dma_virt_alloc

函数原型:static void *dma_virt_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs)

返回类型:void

参数:

类型参数名称
struct device *dev
size_tsize
dma_addr_t *dma_handle
gfp_tgfp
unsigned longattrs
16  ret等于__get_free_pages(gfp | __GFP_ZERO, get_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory)
17  如果retdma_handle等于ret
19  返回:ret