HP-UX Reference (11i v3 07/02) - 3 Library Functions A-M (vol 6)

l
libIO(3X) libIO(3X)
IO_REL_CHILD
IO_REL_PARENT
IO_REL_SIBLING
The node token of the relative is returned in the parameter relative . If either
IO_REL_CHILD or
IO_REL_SIBLING
is specified, then the parameters addr and relative can be used to specify which child
or sibling.
If the parameter relative is NULL, then addr is used to identify a particular child or sibling.
If the parameter relative is not NULL, then the parameter addr is ignored, and if relative == node, the first
child or sibling is returned, otherwise the next child or sibling after the one identified by relative is
returned.
Arguments
node The token of the I/O node.
relationship What relative to look for:
IO_REL_CHILD Look for a child node.
IO_REL_PARENT Look for the parent node.
IO_REL_SIBLING Look for a sibling.
addr The (optional) address of the relative if child or sibling relative to the parent.
relative Either NULL or the handle of the last relative found.
Note that NULL means the relative pointer is pointing to a NULL. It does not mean
a NULL pointer.
Return Value
IO_SUCCESS - Upon success.
IO_ERROR - Otherwise. io_errno is set to indicate the error.
Errors
[IO_E_DCONF_OPEN]
[IO_E_PARM]
[IO_E_SYSCALL]
libIO FUNCTION
Name
io_legacy_to_new_hwpath()
- converts the data structure of a pre-HP-UX 11i V3 hardware path to
that of the hardware path for HP-UX 11i V3 or later
Synopsis
int io_legacy_to_new_hwpath (leg_hw_path_t *from, hw_path_t *to);
Description
io_legacy_to_new_hwpath()
converts a pre-HP-UX 11i V3 hardware path (leg_hw_path_t)
data structure to the hardware path for HP-UX 11i V3 or later (
hw_path_t).
Arguments
from Pointer to a leg_hw_path_t data structure.
to A pointer to the hw_path_t data structure.
Return Value
IO_SUCCESS - Upon success.
IO_ERROR - Otherwise. io_errno is set to indicate the error.
Errors
[IO_E_PARM]
libIO FUNCTION
Name
io_new_to_legacy_hwpath() - converts the data structure of a hardware path used on HP-UX 11i
V3 or later to that of a pre-HP-UX 11i V3 hardware path
734 Hewlett-Packard Company 16 HP-UX 11i Version 3: February 2007