HP-UX Reference (11i v3 07/02) - 3 Library Functions A-M (vol 6)
l
libIO(3X) libIO(3X)
In this case, the caller needs to allocate a bigger buffer after recalculating it using:
(sizeof(io_dev_info_t)*count)
with the returned count value. and needs to call the API again with the new
buffer and count values.
Return Value
IO_SUCCESS - Upon success.
IO_ERROR - Otherwise. io_errno is set to indicate the error.
Errors
[IO_E_DCONF_OPEN]
[IO_E_NODE_NOEXIST]
[IO_E_DCONF_ACCESS]
[IO_E_SYSCALL]
[IO_E_MEM_ALLOC]
[IO_BUF_TOO_SMALL]
libIO FUNCTION
Name
io_block_to_raw()
- returns the character dev_t of the given block dev_t
Synopsis
int io_block_to_raw(dev_t bdev, dev_t *rdev);
Description
This API is used to retrieve character dev_t corresponding to the block
dev_t.
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.
736 Hewlett-Packard Company − 18 − HP-UX 11i Version 3: February 2007