函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xt_poke_early - Update instructions on a live kernel at boot time*@addr: address to modify*@opcode: source of the copy*@len: length to copy* When you use this code to patch more than one byte of an instruction

函数原型:void __init_or_module text_poke_early(void *addr, const void *opcode, size_t len)

返回类型:void

参数:

类型参数名称
void *addr
const void *opcode
size_tlen
765  如果boot_cpu_has(Execute Disable )且is_module_text_address((unsignedlong)addr)则
772  memcpy(addr, opcode, len)
773  否则
774  local_irq_save(flags)
775  memcpy(addr, opcode, len)
776  local_irq_restore(flags)
777  This function forces the icache and prefetched instruction stream to* catch up with reality in two very specific cases:* a) Text was modified using one virtual address and is about to be executed* from the same physical page at a different virtual address
调用者
名称描述
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
__jump_label_transform