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_nparts.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_nparts.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_nparts.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_nparts.html on line 8

_RESMGR_NPARTS()

Indicate how many parts from the ctp->iov structure to return to the client

Synopsis:

#include <sys/resmgr.h>

#define _RESMGR_NPARTS( int num ) ...

Arguments:

num
The number of parts that you want the resource manager library to return to the client.

Library:

None.

Description:

The macro _RESMGR_NPARTS() indicates to the resource manager library that it should return num parts from the ctp->iov structure (see resmgr_context_t) to the client. In effect, the library does the following:

MsgReply( ctp->rcvid, ctp->status, ctp->iov, num ).

Returns:

The negative of num (to distinguish the number from error codes that the handler functions might return).

Classification:

QNX Neutrino

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

Caveats:

The resmgr_attach() function should set attr->nparts_max to be the maximum value for num.

See also:

MsgReply(), resmgr_attach(), resmgr_context_t, _RESMGR_PTR(), _RESMGR_STATUS()

Resource Managers chapter of Getting Started with QNX Neutrino


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_nparts.html on line 127

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_nparts.html on line 127