Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_from_early_mem

Proto:void __init copy_from_early_mem(void *dest, phys_addr_t src, unsigned long size)

Type:void

Parameter:

TypeParameterName
void *dest
phys_addr_tsrc
unsigned longsize
259  When size cycle
260  slop = offset_in_page(src)
261  clen = size
262  If clen > MAX_MAP_CHUNK - slop Then clen = MAX_MAP_CHUNK - slop
264  p = early_memremap(src & PAGE_MASK, clen + slop)
265  memcpy(dest, p + slop, clen)
266  early_memunmap(p, clen + slop)
267  dest += clen
268  src += clen
269  size -= clen