IGETDEVADDR(3)
HP-UX
NAME
igetdevaddr − Return the device address of the device associated with a given session. This routine only works with device sessions.
SYNOPSIS
#include <sicl.h>
int igetdevaddr(INST id, int *prim, int *sec);
DESCRIPTION
igetdevaddr will return in *prim the primary address of the device. The *sec parameter will contain the secondary address of the device (or -1 if no secondary address exists).
RETURN VALUE
igetdevaddr returns (0) if successful, or a non-zero error code if an error was encountered.
ERRORS
igetdevaddr fails under the following circumstances, and sets the return value to one of the following:
[I_ERR_NORSRC] Out of system resources
[I_ERR_NOINTF] Interface is not active
[I_ERR_NODEV] Device is not active
[I_ERR_BADID] The INST id is invalid
[I_ERR_BADADDR] Invalid address (device/interface doesn’t exist)
SEE ALSO
AUTHOR
igetdevaddr was developed by HP.
Hewlett-Packard Company — September 29, 1999