Kernel Text Patching
include/text_patch.h View source View on GitHubStructs
Section titled “Structs”text_patch_window
Section titled “text_patch_window”struct text_patch_window {
uint64_t cr0;
bool interrupts;
}; Functions
Section titled “Functions”text_patch_begin
Section titled “text_patch_begin”struct text_patch_window text_patch_begin(void); text_patch_end
Section titled “text_patch_end”void text_patch_end(struct text_patch_window w); Macros
Section titled “Macros”CR0_WP
Section titled “CR0_WP”#define CR0_WP (1UL << 16)