Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ igetdevaddr(3) — HP-UX Instrument Control Library G.03.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

igeterrno(3)

igeterrstr(3)

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

igeterrno(3), igeterrstr(3)
 

AUTHOR

igetdevaddr was developed by HP. 

Hewlett-Packard Company  —  September 29, 1999

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026