Indicate how many parts from the ctp->iov structure to return to the client
#include <sys/resmgr.h> #define _RESMGR_NPARTS( int num ) ...
None.
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 )
The negative of num (to distinguish the number from error codes that the handler functions might return).
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | Yes |
| Signal handler | Yes |
| Thread | Yes |
The resmgr_attach() function should set attr->nparts_max to be the maximum value for num.