Registers a virtual device number for a given workload partition (WPAR) by mapping it to a real device number in the device switch table.
Item | Description |
---|---|
wparid | WPAR ID. This parameter is required. |
vdevno | Virtual device number. This parameter is required. |
rdevno | Points to the data area that will contains the real device number. This parameter is passed by reference. This parameter is required. |
The kwpar_regdevno kernel service provides the ability to register a virtual device number for a given WPAR by mapping it to a real device number in the device switch table. The kwpar_regdevno kernel service performs the following steps:
The kwpar_regdevno kernel service can be called from the process environment only.
Item | Description |
---|---|
0 | Success. |
non-zero | Failure. |
The kwpar_regdevno kernel service fails if one or more of the following errors occur:
Item | Description |
---|---|
EINVAL | Either the wparid or vdevno argument is not valid. |
ENXIO | Unable to locate the WPAR device map associated with the given WPAR ID. |
ENOTEMPTY | The virtual device number vdevno is already mapped. |