API Reference Manual  1.45.1
spec/system_info.h File Reference

ODP system information. More...

#include <odp/visibility_begin.h>
#include <odp/visibility_end.h>
Include dependency graph for spec/system_info.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  odp_cpu_arch_isa_t
 CPU ISA versions. More...
 
struct  odp_system_info_t
 System info. More...
 
struct  odp_system_meminfo_t
 Memory information. More...
 
struct  odp_system_memblock_t
 Memory block information. More...
 

Macros

#define ODP_SYSTEM_MEMBLOCK_NAME_LEN   64
 Maximum memory block name length in chars (including null char)
 

Typedefs

typedef enum odp_cpu_arch_t odp_cpu_arch_t
 CPU instruction set architecture (ISA) families.
 
typedef enum odp_cpu_arch_arm_t odp_cpu_arch_arm_t
 ARM ISA versions. More...
 
typedef enum odp_cpu_arch_mips_t odp_cpu_arch_mips_t
 MIPS ISA versions.
 
typedef enum odp_cpu_arch_ppc_t odp_cpu_arch_ppc_t
 PowerPC ISA versions.
 
typedef enum odp_cpu_arch_riscv_t odp_cpu_arch_riscv_t
 RISC-V ISA versions.
 
typedef enum odp_cpu_arch_x86_t odp_cpu_arch_x86_t
 x86 ISA versions
 
typedef union odp_cpu_arch_isa_t odp_cpu_arch_isa_t
 CPU ISA versions.
 
typedef struct odp_system_info_t odp_system_info_t
 System info.
 
typedef struct odp_system_meminfo_t odp_system_meminfo_t
 Memory information.
 
typedef struct odp_system_memblock_t odp_system_memblock_t
 Memory block information.
 

Enumerations

enum  odp_cpu_arch_t {
  ODP_CPU_ARCH_UNKNOWN = 0 , ODP_CPU_ARCH_ARM , ODP_CPU_ARCH_MIPS , ODP_CPU_ARCH_PPC ,
  ODP_CPU_ARCH_RISCV , ODP_CPU_ARCH_X86
}
 CPU instruction set architecture (ISA) families. More...
 
enum  odp_cpu_arch_arm_t {
  ODP_CPU_ARCH_ARM_UNKNOWN = 0 , ODP_CPU_ARCH_ARMV6 , ODP_CPU_ARCH_ARMV7 , ODP_CPU_ARCH_ARMV8_0 ,
  ODP_CPU_ARCH_ARMV8_1 , ODP_CPU_ARCH_ARMV8_2 , ODP_CPU_ARCH_ARMV8_3 , ODP_CPU_ARCH_ARMV8_4 ,
  ODP_CPU_ARCH_ARMV8_5 , ODP_CPU_ARCH_ARMV8_6 , ODP_CPU_ARCH_ARMV8_7 , ODP_CPU_ARCH_ARMV8_8 ,
  ODP_CPU_ARCH_ARMV8_9 , ODP_CPU_ARCH_ARMV9_0 , ODP_CPU_ARCH_ARMV9_1 , ODP_CPU_ARCH_ARMV9_2 ,
  ODP_CPU_ARCH_ARMV9_3
}
 ARM ISA versions. More...
 
enum  odp_cpu_arch_mips_t { ODP_CPU_ARCH_MIPS_UNKNOWN = 0 }
 MIPS ISA versions. More...
 
enum  odp_cpu_arch_ppc_t { ODP_CPU_ARCH_PPC_UNKNOWN = 0 }
 PowerPC ISA versions. More...
 
enum  odp_cpu_arch_riscv_t { ODP_CPU_ARCH_RISCV_UNKNOWN = 0 }
 RISC-V ISA versions. More...
 
enum  odp_cpu_arch_x86_t { ODP_CPU_ARCH_X86_UNKNOWN = 0 , ODP_CPU_ARCH_X86_I686 , ODP_CPU_ARCH_X86_64 }
 x86 ISA versions More...
 

Functions

int odp_system_info (odp_system_info_t *info)
 Retrieve system information. More...
 
int32_t odp_system_meminfo (odp_system_meminfo_t *info, odp_system_memblock_t block[], int32_t num)
 Retrieve ODP memory usage information. More...
 
uint64_t odp_sys_huge_page_size (void)
 Default system huge page size in bytes. More...
 
int odp_sys_huge_page_size_all (uint64_t size[], int num)
 System huge page sizes in bytes. More...
 
uint64_t odp_sys_page_size (void)
 Page size in bytes. More...
 
int odp_sys_cache_line_size (void)
 Cache line size in bytes. More...
 
void odp_sys_info_print (void)
 Print system info. More...
 
void odp_sys_config_print (void)
 Print configuration. More...
 

Detailed Description

ODP system information.

Definition in file spec/system_info.h.