diff options
| author | Mete Durlu <meted@linux.ibm.com> | 2025-01-14 17:03:09 +0100 |
|---|---|---|
| committer | Alexander Gordeev <agordeev@linux.ibm.com> | 2025-01-15 13:59:08 +0100 |
| commit | 0d30871739ab433e114b0058f08b6b1c7b816f7e (patch) | |
| tree | 72ebbd16b08e8f12494bfe3e698b97ab5f3de9a1 /arch/s390/include/uapi | |
| parent | b2bc1b1a77c0ffc2f51e90b1112d7f5530e4d15c (diff) | |
| download | linux-0d30871739ab433e114b0058f08b6b1c7b816f7e.tar.gz linux-0d30871739ab433e114b0058f08b6b1c7b816f7e.tar.bz2 linux-0d30871739ab433e114b0058f08b6b1c7b816f7e.zip | |
s390/diag: Add memory topology information via diag310
Introduce diag310 and memory topology related subcodes.
Provide memory topology information obtanied from diag310 to userspace
via diag ioctl.
Signed-off-by: Mete Durlu <meted@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/uapi')
| -rw-r--r-- | arch/s390/include/uapi/asm/diag.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/diag.h b/arch/s390/include/uapi/asm/diag.h index 361c9ba9d4f5..b7e6ccb4ff6e 100644 --- a/arch/s390/include/uapi/asm/diag.h +++ b/arch/s390/include/uapi/asm/diag.h @@ -17,8 +17,16 @@ struct diag324_pib { __u64 sequence; }; +struct diag310_memtop { + __u64 address; + __u64 nesting_lvl; +}; + /* Diag ioctl definitions */ #define DIAG324_GET_PIBBUF _IOWR(DIAG_MAGIC_STR, 0x77, struct diag324_pib) #define DIAG324_GET_PIBLEN _IOR(DIAG_MAGIC_STR, 0x78, size_t) +#define DIAG310_GET_STRIDE _IOR(DIAG_MAGIC_STR, 0x79, size_t) +#define DIAG310_GET_MEMTOPLEN _IOWR(DIAG_MAGIC_STR, 0x7a, size_t) +#define DIAG310_GET_MEMTOPBUF _IOWR(DIAG_MAGIC_STR, 0x7b, struct diag310_memtop) #endif /* __S390_UAPI_ASM_DIAG_H */ |
