Modifies the calling partition's characteristics.
Standard C Library (lib.c)
#include  <sys/dr.h>
 int lpar_set_resources ( lpar_resource_id,lpar_resource )
int lpar_resource_id;
void *lpar_resource;
These resource IDs are defined in the <sys/dr.h> header file. To modify the Processor Entitled Capacity and Processor Variable Capacity Weight attributes, ensure that the current partition is an SPLPAR partition. Otherwise, an error is returned.
| Item | Description | 
|---|---|
| lpar_resource_id | Identifies the dynamic resource whose value is being changed. | 
| lpar_resource | Pointer to a new value of the dynamic resource identified by the lpar_resource_id. | 
The lpar_set_resources subroutine can only be called in a process owned by a root user (super user) or a user with the CAP_EWLM_AGENT capability.
Upon success, the lpar_set_resources subroutine returns a value of 0. Upon failure, a negative value is returned, and errno is set to the appropriate error.
| Item | Description | 
|---|---|
| EINVAL | Invalid configuration parameters. | 
| EPERM | Insufficient authority. | 
| EEXIST | Resource already exists. | 
| EBUSY | Resource is busy. | 
| EAGAIN | Resource is temporarily unavailable. | 
| ENOMEM | Resource allocation failed. | 
| ENOTREADY | Resource is not ready. | 
| ENOTSUP | Operation is not supported. | 
| EFAULT/EIO | Operation failed because of an I/O error. | 
| EINPROGRESS | Operation in progress. | 
| ENXIO | Resource is not available. | 
| ERANGE | Parameter value is out of range. | 
| All others | Internal error. |