libIO.3x (2010 09)
l
libIO(3X) libIO(3X)
Arguments
bdev Block dev_t whose character dev_t is needed.
rdev The retrieved character
dev_t of the given block
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_block_to_char_dsf()
- maps a block device special file to character device special file
Synopsis
int io_block_to_char_dsf(char *block_dsf, char *char_dsf);
Description
This API maps a given block device special file to its corresponding character device special file.
Arguments
block_dsf Pointer to a block device special file to be mapped to a character device special file.
char_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_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.
HP-UX 11i Version 3: September 2010 − 19 − Hewlett-Packard Company 19