API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IMEMGROUP_CREATEREGION()

Brew Release
Brew MP 1.0.2
See Also
IMemSpace Interface.
Description
Creates a new memory region from a specific memory pool.
Params
pif
[in]:
Interface pointer.
piqiPool
[in]:
Pointer to memory pool from which the region is to be allocated. To allocate from default memory pool, a value of 0 could be passed in.
ulVirtAddr
[in]:
Starting virtual address of the region. This could either be set to a specific address or to either MEMREGION_ANYADDR or MEMREGION_IDEMPOTENT
physInfo
[in]:
Physical address to be used for this region. This could either be set to a list of specific addresses or ulSize set to size of the region, ulPerms set to permissions for the region and ulStart set to one of the
physInfoLen
[in]:
physInfo array count
ulFlags
[in]:
Memory allocation attributes that can be set to the following
ppiMemRegion
[out]:
Pointer to IMemRegion1 interface pointer
Interface
Prototype
  •    AEEResult IMemGroup_CreateRegion(IMemGroup* pif, 
                                        IQI* piqiPool, 
                                        uint32 ulVirtAddr, 
                                        const PhysMemInfo* physInfo, 
                                        int physInfoLen, 
                                        uint32 ulFlags, 
                                        IMemRegion1** ppiMemRegion)
    
Return
  • AEE_SUCCESS: Success. AEE_EFAILED, AEE_ENOMEMORY: Failure
Side Effect
  • None.
Comments
None.