arch/x86/boot/compressed/cpuflags.c

Source file repositories/reference/linux-study-clean/arch/x86/boot/compressed/cpuflags.c

File Facts

System
Linux kernel
Corpus path
arch/x86/boot/compressed/cpuflags.c
Extension
.c
Size
146 bytes
Lines
10
Domain
Architecture Layer
Bucket
arch/x86
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: GPL-2.0
#include "../cpuflags.c"

bool has_cpuflag(int flag)
{
	get_cpuflags();

	return test_bit(flag, cpu.flags);
}

Annotation

Implementation Notes