Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void __init dma_contiguous_reserve(phys_addr_t limit)

Type:void

Parameter:

TypeParameterName
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  If size_cmdline != -1 Then
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  If base_cmdline + size_cmdline == limit_cmdline Then fixed = true
123  Else If selected_size && Not dma_contiguous_default_area Then
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).