_RESMGR_NPARTS
![]() |
![]() |
![]() |
![]() |
_RESMGR_NPARTS()
Get a given number of parts from the ctp->iov structure
Synopsis:
#include <sys/resmgr.h> _RESMGR_NPARTS( int num )
Arguments:
- num
- The number of parts that you want to get.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The macro _RESMGR_NPARTS() indicates to the caller to get num parts from the ctp->iov structure (see resmgr_context_t). The macro is similar to:
MsgReply( ctp->rcvid, ctp->status, ctp->iov, num ).
Classification:
| 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()
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)
