函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\alternative.c Create Date:2022-07-27 08:44:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Use this to add nops to a buffer, then text_poke the whole buffer.

函数原型:static void __init_or_module add_nops(void *insns, unsigned int len)

返回类型:void

参数:

类型参数名称
void *insns
unsigned intlen
259 len大于0循环
260  noplen等于len
261  如果noplen大于ASM_NOP_MAXnoplen等于ASM_NOP_MAX
263  memcpy(insns, Initialize these to a safe default [noplen], noplen)
264  insns加等于noplen
265  len减等于noplen
调用者
名称描述
recompute_jump
optimize_nops"noinline" to cause control flow change and thus invalidate I$ and* cause refetch after modification.
apply_alternativesReplace instructions with better alternatives for this CPU type. This runs* before SMP is initialized to avoid SMP problems with self modifying code.* This implies that asymmetric systems where APs have less capabilities than