Allocates a contiguous block of contiguous real memory for exclusive use by the caller. The block of memory reserved will be the size of a system LMB.
The alloclmb() subroutine reserves an LMB sized block of contiguous real memory for exclusive use by the caller. It returns the partition logical address of that memory in *laddr.
alloclmb() is only valid in an LPAR environment, and it fails (with ENOTSUP) if called in another environment.
Only a privileged user should call alloclmb().
| Item | Description | 
|---|---|
| laddr | On successful return, contains the logical address of the allocated LMB. | 
| flags | Must be 0. | 
This alloclmb() interface should only be called from the process environment.
| Item | Description | 
|---|---|
| 0 | The LMB is successfully allocated. | 
| Item | Description | 
|---|---|
| ENOTSUP | LMB allocation not supported on this system. | 
| EINVAL | Invalid flags value. | 
| EINVAL | Not in the process environment. | 
| ENOMEM | A free LMB could not be made available. |