Function: alloc_in

Allocates size bytes of memory with protection flags Prot in the calling process.

This function is safe

Parameters

This function can be called in 2 ways:

With align

Without align

Align will automatically be set to 0 for this.

Exceptions

If allocation failed. If begin_addr >= end_addr . If align is not power of 2, less than system allocation granularity, or not a multiple of system allocation granularity. If begin addresses next rounded up to granularity is not within begin..end. If end address rounded down to granularity is not within begin..end. If begin and/or end addresses are outside of minimum/maximum application address.

Return Value

Returns an Alloc.