libIO.3x (2010 09)
l
libIO(3X) libIO(3X)
dev_type Possible values are:
D_CHR Character dev_t.
D_BLK Block dev_t.
options Unsigned 64-bit mask representing the device options is stored in the location pointed
to by options.
Return Value
IO_SUCCESS - Upon success.
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_dev()
- determines if the given dev_t is legacy
Synopsis
int io_is_legacy_dev(dev_t dev, int dev_type);
Description
This API determines if the given dev_t is a legacy or an agile dev_t. While checking if a given device
special file is persistent or legacy, issue a stat() call on the device special file and pass
st_rdev (see
stat (2)) to this API. The device special file is of persistent type if the API returns
IO_TOKEN_NEW and
the file is of legacy type if the API returns
IO_TOKEN_LEGACY
.
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 -If
dev_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.
HP-UX 11i Version 3: September 2010 − 13 − Hewlett-Packard Company 13