Using the HP-UX libIO Library
libIO Routines
libIO routines are classified based on the services that they provide, as follows:
• Search/Query the I/O Tree and Switch Table
• dev_t related functions
• Device Special File services
• Hardware path related functions
• Other miscellaneous functions
Search/Query the I/O Tree and Switch Table
Table 1 lists the routines in the libIO library that can be used to search or query the
I/O Tree and switch table:
Table 1 – libIO routines to Search/Query the I/O Tree and Switch Table
Routine Description
io_search()
Searches for kernel I/O system information and
returns a token
io_search_array()
Searches the kernel I/O system with multiple
search criteria
io_search_array_batch()
Searches for multiple kernel I/O nodes
io_query()
Gets information about a token
io_query_array()
Gets multiple information of a token at one time
io_query_batch()
Creates multiple keys to call io_query_array()
io_search()
This routine is used to search for kernel I/O system information and returns a token.
The returned token corresponds to an entry in the I/O Tree or one of the switch
tables, which can be specified in type. The caller can use maximum of 12 keys
(IO_MAX_SEARCH_KEYS) to search for kernel I/O system information. The function
prototype for this routine is:
io_token_t io_search(io_token_t token, int type, int qual,
char *key1, void *dat1, char *key2, void *dat2,
char *keyN, void *datN, NULL);