Using the HP-UX libIO Library

io_token_t io_search_array(io_token_t token, int type,
int qual, char *key[], void *dat[]);
The type used as argument in the io_search() routine can have the following
values:
S_IOTREE
S_IOTREE_EXT
S_BDEVSW
S_CDEVSW
The defined qualifiers used for io_search() are described in Table 2
Table 2 – io_search() Qualifiers
Qualifier Description
Q_SW
I/O Tree node is claimed by driver
Q_HW
I/O Tree node has associated hardware
Q_PSEUDO
Pseudo driver
Q_DEVSW
Driver is in a switch table
Q_SUBTREE
Returns all children of matching node
Q_NEW
F_NEW flag is set (newly found hardware)
Q_CONSOLE
Matches for console devices
Q_ROOT
Matches for root devices
Q_SWAP
Matches for swap devices
Q_DUMP
Matches for dump devices
Q_SAVE_CONF
Matches if node to be saved in /etc/ioconfig
and /etc/ext_ioconfig
Q_BOOTPATH
Matches if boot device path
Q_DYN_MAJOR
Matches if [C/B]DEVSW entry is dynamic
Q_VIRTBUS
Matches for nodes claimed to be virtbuses; virtroot
node will also be matched
Q_USABLE
Drivers have a major number or INTERFACE Driver
Q_BOOT
Matches if boot device
The defined keys used to search the I/O Tree are described in Table 3: