arch/s390/include/asm/pfault.h

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

File Facts

System
Linux kernel
Corpus path
arch/s390/include/asm/pfault.h
Extension
.h
Size
461 bytes
Lines
27
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

#ifndef _ASM_S390_PFAULT_H
#define _ASM_S390_PFAULT_H

#include <linux/errno.h>

int __pfault_init(void);
void __pfault_fini(void);

static inline int pfault_init(void)
{
	if (IS_ENABLED(CONFIG_PFAULT))
		return __pfault_init();
	return -EOPNOTSUPP;
}

static inline void pfault_fini(void)
{
	if (IS_ENABLED(CONFIG_PFAULT))
		__pfault_fini();
}

#endif /* _ASM_S390_PFAULT_H */

Annotation

Implementation Notes