HP-UX Reference (11i v3 07/02) - 3 Library Functions A-M (vol 6)
l
libIO(3X) libIO(3X)
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]
[IO_E_BUF_TOO_SMALL]
libIO FUNCTION
Name
io_char_to_block_dsf()
- map a char device special file to block device special file
Synopsis
int io_char_to_block_dsf(char *char_dsf, char *block_dsf);
Description
This API maps a given character device special file to its corresponding block device special file.
Arguments
char_dsf A pointer to a character device special file to be mapped to a block device special file.
block_dsf A pointer to a buffer with size MAXPATHLEN .
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]
[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]
HP-UX 11i Version 3: February 2007 − 19 − Hewlett-Packard Company 737