arch/s390/hypfs/hypfs_diag.h

Source file repositories/reference/linux-study-clean/arch/s390/hypfs/hypfs_diag.h

File Facts

System
Linux kernel
Corpus path
arch/s390/hypfs/hypfs_diag.h
Extension
.h
Size
814 bytes
Lines
36
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 _S390_HYPFS_DIAG_H_
#define _S390_HYPFS_DIAG_H_

#include <asm/diag.h>

enum diag204_format diag204_get_info_type(void);
void *diag204_get_buffer(enum diag204_format fmt, int *pages);
int diag204_store(void *buf, int pages);

int __hypfs_diag_fs_init(void);
void __hypfs_diag_fs_exit(void);

static __always_inline int hypfs_diag_fs_init(void)
{
	if (IS_ENABLED(CONFIG_S390_HYPFS_FS))
		return __hypfs_diag_fs_init();
	return 0;
}

static inline void hypfs_diag_fs_exit(void)
{
	if (IS_ENABLED(CONFIG_S390_HYPFS_FS))
		__hypfs_diag_fs_exit();
}

#endif /* _S390_HYPFS_DIAG_H_ */

Annotation

Implementation Notes