> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# APM Memmap API

> This file contains the structure definitions for the memory map commands.

**Header:** `spf/api/apm/apm_memmap_api.h`

## Structures

### `apm_cmd_global_shared_mem_map_regions_t`

Immediately following this structure are num\_regions of apm\_shared\_map\_region\_payload\_t.

**Members**

**shmem\_id** `uint32_t`

A unique ID assigned by the client for these memory regions.

**mem\_pool\_id** `uint16_t`

Type of memory on which this memory region is mapped.

**num\_regions** `uint16_t`

Number of physical regions to map.

**property\_flag** `uint32_t`

Configures one common property for all regions in the payload.

### `apm_cmd_shared_mem_map_regions_t`

Immediately following this structure are num\_regions of apm\_shared\_map\_region\_payload\_t.

**Members**

**mem\_pool\_id** `uint16_t`

Type of memory on which this memory region is mapped.

**num\_regions** `uint16_t`

Number of regions to map.

**property\_flag** `uint32_t`

Configures one common property for all regions in the payload.

### `apm_cmd_shared_satellite_mem_map_regions_t`

Immediately following this structure are num\_regions of apm\_shared\_map\_region\_payload\_t.

**Members**

**master\_mem\_handle** `uint32_t`

Specifies the memory handle of the master processor that corresponds to the shared memory region being mapped to the satellite process domain.

**satellite\_proc\_domain\_id** `uint32_t`

Specifies the satellite process domain ID to which the memory is mapped.

**mem\_pool\_id** `uint16_t`

Type of memory on which this memory region is mapped.

**num\_regions** `uint16_t`

Number of regions to map.

**property\_flag** `uint32_t`

Configures one common property for all regions in the payload.

### `apm_shared_map_region_payload_t`

**Members**

**shm\_addr\_lsw** `uint32_t`

Lower 32 bits of the shared memory address of the memory region to map.

**shm\_addr\_msw** `uint32_t`

Upper 32 bits of the shared memory address of the memory region to map.

**mem\_size\_bytes** `uint32_t`

Number of bytes in the region.

### `apm_cmd_rsp_shared_mem_map_regions_t`

**Members**

**mem\_map\_handle** `uint32_t`

Unique identifier for the shared memory address.

### `apm_cmd_rsp_shared_satellite_mem_map_regions_t`

**Members**

**mem\_map\_handle** `uint32_t`

Unique identifier for the shared memory address.

### `apm_cmd_global_shared_mem_unmap_regions_t`

**Members**

**shmem\_id** `uint32_t`

Unique identifier for the global shared memory.

### `apm_cmd_shared_mem_unmap_regions_t`

**Members**

**mem\_map\_handle** `uint32_t`

Unique identifier for the shared memory address.

### `apm_cmd_shared_satellite_mem_unmap_regions_t`

**Members**

**satellite\_proc\_domain\_id** `uint32_t`

Specifies the satellite process domain ID whose memory must be unmapped.

**master\_mem\_handle** `uint32_t`

Unique identifier for the shared memory address.
