Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/resmgr_devino.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/resmgr_devino.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/resmgr_devino.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/resmgr_devino.html on line 8

resmgr_devino()

Get the device and inode number

Synopsis:

#include <sys/resmgr.h>

int resmgr_devino( int id,
                   dev_t *pdevno,
                   ino64_t *pino );

Arguments:

id
The link ID that resmgr_attach() returned.
pdevno
A pointer to a dev_t object where the function can store the device number.
pino
A pointer to a ino64_t object where the function can store the inode number.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The function resmgr_devino() fills in the structures pointed to by pdevno and pino with the device number and inode number extracted from id.

This function is typically used to fill in:

You can use the major(), minor(), and makedev() macros to work with device IDs. They're defined in <sys/types.h> and are described in the documentation for stat().

Returns:

-1 on error (errno is set); any other value on success.

Errors:

EINVAL
The id argument is invalid.

Examples:

#include <sys/resmgr.h>
#include <stdio.h>
#include <stdlib.h>

int main( void )
{
  iofunc_mount_t   mount;
  iofunc_attr_t    attr;

  ...
  attr.mount = &mount;
  ...
  id = resmgr_attach( ... )
  ...
  resmgr_devino(id, &mount.dev, &attr.inode);
  ...
  return EXIT_SUCCESS;
}

Classification:

QNX Neutrino

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread Yes

See also:

resmgr_attach(), SETIOV(), stat()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/resmgr_devino.html on line 178

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/resmgr_devino.html on line 178