Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\sparse.c Create Date:2022-07-28 15:34:16
Last Modify:2020-03-17 22:36:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:subsection_map_init

Proto:void __init subsection_map_init(unsigned long pfn, unsigned long nr_pages)

Type:void

Parameter:

TypeParameterName
unsigned longpfn
unsigned longnr_pages
233  end_sec = pfn_to_section_nr(pfn + nr_pages - 1)
234  start_sec = pfn_to_section_nr(pfn)
236  If Not nr_pages Then Return
239  When nr <= end_sec cycle
243  pfns = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(nr_pages, PAGES_PER_SECTION - (pfn & ~PAGE_SECTION_MASK))
245  ms = __nr_to_section(nr)
246  subsection_mask_set(subsection_map, pfn, pfns)
248  pr_debug("%s: sec: %lu pfns: %lu set(%d, %d)\n", __func__, nr, pfns, subsection_map_index(pfn), subsection_map_index(pfn + pfns - 1))
252  pfn += pfns
253  nr_pages -= pfns