API Reference Manual  1.45.1
odp_shm_capability_t Struct Reference

Shared memory capabilities. More...

#include <shared_memory.h>

Data Fields

uint32_t max_blocks
 Maximum number of shared memory blocks. More...
 
uint64_t max_size
 Maximum memory block size in bytes. More...
 
uint64_t max_align
 Maximum memory block alignment in bytes. More...
 
uint32_t flags
 Supported shared memory flags. More...
 

Detailed Description

Shared memory capabilities.

Examples
odp_dma_perf.c, odp_mem_perf.c, odp_pool_latency.c, and odp_sysinfo.c.

Definition at line 158 of file api/spec/shared_memory.h.

Field Documentation

◆ max_blocks

uint32_t odp_shm_capability_t::max_blocks

Maximum number of shared memory blocks.

This number of separate shared memory blocks can be reserved concurrently.

Examples
odp_dma_perf.c, odp_mem_perf.c, odp_pool_latency.c, and odp_sysinfo.c.

Definition at line 163 of file api/spec/shared_memory.h.

◆ max_size

uint64_t odp_shm_capability_t::max_size

Maximum memory block size in bytes.

The value of zero means that size is limited only by the available memory size.

Examples
odp_dma_perf.c, odp_mem_perf.c, odp_pool_latency.c, and odp_sysinfo.c.

Definition at line 169 of file api/spec/shared_memory.h.

◆ max_align

uint64_t odp_shm_capability_t::max_align

Maximum memory block alignment in bytes.

The value of zero means that alignment is limited only by the available memory size.

Examples
odp_sysinfo.c.

Definition at line 175 of file api/spec/shared_memory.h.

◆ flags

uint32_t odp_shm_capability_t::flags

Supported shared memory flags.

A bit mask of supported ODP_SHM_* flags. Depending on the implementation some flag combinations may not be supported. In this case odp_shm_reserve() will fail.

Examples
odp_sysinfo.c.

Definition at line 183 of file api/spec/shared_memory.h.


The documentation for this struct was generated from the following file: