libIO.3x (2010 09)

l
libIO(3X) libIO(3X)
dat[] An array of corresponding query field data.
ret_roken [] An array of token returned.
Return Value
IO_SUCCESS - Upon success.
IO_ERROR - Otherwise. io_errno is set to indicate the error.
Errors
[IO_E_DCONF_ACCESS]
[IO_E_DCONF_OPEN]
[IO_E_NODE_PARM]
[IO_E_SYSCALL]
libIO FUNCTION
Name
io_mkdev_ext()
- returns a dev_t for the given node, dev_type , and device options
Synopsis
int io_mkdev_ext(io_token_t node, int dev_type, uint64_t options,
dev_t *dev);
Description
io_mkdev_ext() builds a
dev_t from the given node, device type and options. This API is for creat-
ing a
dev_t for an agile node only. io_errno is set to IO_E_FUNC_NOT_SUPPORTED
if called on
legacy nodes.
Arguments
node Token corresponding to the I/O node.
dev_type Possible values are:
D_CHR Character dev_t.
D_BLK Block dev_t.
options Device specific options.
dev The created
dev_t is stored in memory pointed to by dev .
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_NODE_NOEXIST]
[IO_E_FUNC_NOT_SUPPORTED]
libIO FUNCTION
Name
io_dev_to_options() - returns the device options of a given dev_t and dev_type
Synopsis
int io_dev_to_options(dev_t dev, int dev_type, uint64_t *options);
Description
Given dev_t and dev_type , io_dev_to_options() returns its device options in a uint64_t bit
mask format.
Arguments
dev
dev_t value to retrieve the device options.
12 Hewlett-Packard Company 12 HP-UX 11i Version 3: September 2010