libIO.3x (2010 09)

l
libIO(3X) libIO(3X)
Errors
[IO_E_DCONF_OPEN]
[IO_E_PARM]
[IO_E_DCONF_ACCESS]
[IO_E_SYSCALL]
[IO_E_BUF_TOO_SMALL]
libIO FUNCTION
Name
io_raw_to_block()
- returns the block dev_t of the given character
dev_t
Synopsis
int io_raw_to_block(dev_t rdev, dev_t *bdev);
Description
This API is used to retrieve block dev_t
corresponding to the character
dev_t.
Arguments
rdev Character
dev_t whose block dev_t is needed.
bdev The retrieved block
dev_t of the given character dev_t is stored here through the
pointer. NODEV in case of an error.
Return Value
IO_SUCCESS - Upon success.
IO_ERROR - Otherwise. io_errno is set to indicate the error.
Errors
[IO_E_DCONF_OPEN]
[IO_E_PARM]
[IO_E_SYSCALL]
[IO_E_DCONF_ACCESS]
libIO FUNCTION
Name
io_legacy_to_new_dev()
- maps a legacy dev_t to an agile dev_t
Synopsis
int io_legacy_to_new_dev(dev_t legacy_dev, int dev_type,
dev_t *new_dev);
Description
Given a legacy dev_t and dev_type , this API retrieves its agile dev_t.
Arguments
legacy_dev Legacy
dev_t to retrieve the agile dev_t.
dev_type Possible values are:
D_CHR Character dev_t.
D_BLK Block dev_t.
new_dev The agile
dev_t is stored here.
Return Value
IO_SUCCESS - Upon success.
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]
20 Hewlett-Packard Company 20 HP-UX 11i Version 3: September 2010