HP-UX Reference (11i v3 07/02) - 3 Library Functions A-M (vol 6)
l
libIO(3X) libIO(3X)
Arguments
dev dev_t of the I/O node.
dev_type Possible values are:
D_CHR Character dev_t.
D_BLK Block dev_t.
Return Value
IO_TOKEN_NEW -Ifdev_t is of an agile I/O node.
IO_TOKEN_LEGACY
-Ifdev_t is of a legacy I/O node.
IO_ERROR - Failure.
io_errno is set to indicate the error.
Errors
[IO_E_DCONF_OPEN]
[IO_E_PARM]
[IO_E_DCONF_ACCESS]
[IO_E_SYSCALL]
libIO FUNCTION
Name
io_is_legacy_token()
- determines if token is legacy or agile
Synopsis
int io_is_legacy_token(io_token_t token);
Description
This API accepts a token and determines whether it is of type agile or legacy form.
Arguments
token I/O node token.
Return Value
IO_TOKEN_NEW -Ifdev_t is of an agile node.
IO_TOKEN_LEGACY -If
dev_t is of a legacy node.
IO_ERROR - Otherwise. io_errno is set to indicate the error.
Errors
[IO_E_DCONF_OPEN]
[IO_E_PARM]
[IO_E_DCONF_ACCESS]
[IO_E_SYSCALL]
libIO FUNCTION
Name
io_get_legacy_mode()
- returns the state of legacy mode
Synopsis
int io_get_legacy_mode (unsigned int *mode)
Description
This API is called to retrieve the state of legacy mode. The value returned in the argument mode will
specify if the legacy mode is currently enabled or disabled (see rmsf(1M) and insf(1M)).
Arguments
mode A pointer to an unsigned integer.
1 Value set if legacy mode is enabled.
0 Value set if the legacy mode is disabled.
Return Value
IO_SUCCESS - Upon success.
IO_ERROR - Otherwise. io_errno is set to indicate the error.
HP-UX 11i Version 3: February 2007 − 13 − Hewlett-Packard Company 731