arch/x86/include/asm/amd/hsmp.h

Source file repositories/reference/linux-study-clean/arch/x86/include/asm/amd/hsmp.h

File Facts

System
Linux kernel
Corpus path
arch/x86/include/asm/amd/hsmp.h
Extension
.h
Size
364 bytes
Lines
17
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

#ifndef _ASM_X86_AMD_HSMP_H_
#define _ASM_X86_AMD_HSMP_H_

#include <uapi/asm/amd_hsmp.h>

#if IS_ENABLED(CONFIG_AMD_HSMP)
int hsmp_send_message(struct hsmp_message *msg);
#else
static inline int hsmp_send_message(struct hsmp_message *msg)
{
	return -ENODEV;
}
#endif

#endif /*_ASM_X86_AMD_HSMP_H_*/

Annotation

Implementation Notes