libIO.3x (2010 09)
l
libIO(3X) libIO(3X)
Arguments
dev dev_t to check for option settings.
dev_type Possible values are:
D_CHR Character dev_t.
D_BLK Block dev_t.
options NULL terminated string indicating device specific options.
Return Value
1 - If one or more of specified options set.
IO_ERROR -Otherwise.
Errors
None.
libIO FUNCTION
Name
io_mkdev() - builds a dev_t, given a node and option string
Synopsis
int io_mkdev(io_token_t node,int dev_type,char *options,dev_t *dev);
Description
io_mkdev() builds a dev_t pointed to by dev from the given node and options.
Arguments
node Token corresponding to an I/O tree node.
dev_type Possible values are:
D_CHR Character dev_t.
D_BLK Block dev_t.
dev Pointer to
dev_t.
Return Value
IO_SUCCESS - Upon success.
IO_ERROR - Otherwise. io_errno is set to indicate the error.
Errors
[IO_E_DCONF_ACCESS]
[IO_E_DCONF_OPEN]
[IO_E_NODE_NOEXIST]
[IO_E_PARM]
[IO_E_SYSCALL]
libIO FUNCTION
Name
io_node_to_hw_path() - converts token to a hardware path
Synopsis
int io_node_to_hw_path(io_token_t node,hw_path_t *hw_path);
Description
io_node_to_hw_path() fills hw_path with the hardware path of the given node.
Arguments
node Token corresponding to I/O node.
hw_path Hardware path of node.
Return Value
IO_SUCCESS - Upon success.
8 Hewlett-Packard Company − 8 − HP-UX 11i Version 3: September 2010