函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dma_contiguous_reserve() - reserve area(s) for contiguous memory handling*@limit: End address of the reserved memory (optional, 0 for any)

函数原型:void __init dma_contiguous_reserve(phys_addr_t limit)

返回类型:void

参数:

类型参数名称
phys_addr_tlimit
110  selected_size等于0
111  selected_base等于0
112  selected_limit等于limit
113  bool fixed = false
115  pr_debug("%s(limit %08lx)\n", __func__, (unsignedlong)limit)
117  如果size_cmdline不等于负1则
118  selected_size等于size_cmdline
119  selected_base等于base_cmdline
120  selected_limit等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(limit_cmdline, limit)
121  如果base_cmdlinesize_cmdline恒等于limit_cmdlinefixed = true
123  否则如果selected_size且非dma_contiguous_default_area
136  pr_debug("%s: reserving %ld MiB for global area\n", __func__, (unsignedlong)selected_size / SZ_1M)
139  dma_contiguous_reserve_area() - reserve custom contiguous area*@size: Size of the reserved area (in bytes),*@base: Base address of the reserved area optional, use 0 for any*@limit: End address of the reserved memory (optional, 0 for any).