freelmb Subroutine
Purpose
Returns a block of memory allocated by alloclmb() to the system.
Syntax
#include <sys/dr.h>
int freelmb(long long laddr
Description
The freelmb() subroutine returns a block of memory, allocated by allocmb(), for general system use.
Parameters
| Item | Description |
|---|---|
| laddr | A previously allocated LMB address. |
Execution Environment
This freelmb() interface should only be called from the process environment.
Return Values
| Item | Description |
|---|---|
| 0 | The LMB is successfully freed. |
Error Codes
| Item | Description |
|---|---|
| ENOTSUP | LMB allocation not supported on this system. |
| EINVAL | laddr does not describe a previously allocated LMB. |
| EINVAL | Not in the process environment. |