arch/s390/include/asm/skey.h

Source file repositories/reference/linux-study-clean/arch/s390/include/asm/skey.h

File Facts

System
Linux kernel
Corpus path
arch/s390/include/asm/skey.h
Extension
.h
Size
725 bytes
Lines
33
Domain
Architecture Layer
Bucket
arch/s390
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

struct skey_region {
	unsigned long start;
	unsigned long end;
};

#define SKEY_REGION(_start, _end)			\
	stringify_in_c(.section .skey_region,"a";)	\
	stringify_in_c(.balign 8;)			\
	stringify_in_c(.quad (_start);)			\
	stringify_in_c(.quad (_end);)			\
	stringify_in_c(.previous)

extern int skey_regions_initialized;
extern struct skey_region __skey_region_start[];
extern struct skey_region __skey_region_end[];

void __skey_regions_initialize(void);

static inline void skey_regions_initialize(void)
{
	if (READ_ONCE(skey_regions_initialized))
		return;
	__skey_regions_initialize();
}

#endif /* __ASM_SKEY_H */

Annotation

Implementation Notes