函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_from_early_mem

函数原型:void __init copy_from_early_mem(void *dest, phys_addr_t src, unsigned long size)

返回类型:void

参数:

类型参数名称
void *dest
phys_addr_tsrc
unsigned longsize
259 size循环
260  slop等于offset_in_page(src)
261  clen等于size
262  如果clen大于MAX_MAP_CHUNKslopclen等于MAX_MAP_CHUNKslop
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