[Previous] [Contents] [Index] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

_RESMGR_PTR()

Get one part from the ctp->iov structure and fill in its fields

Synopsis:

#include <sys/resmgr.h>

_RESMGR_PTR( resmgr_context_t ctp,
             void msg,
             size_t nbytes )

Arguments:

ctp
A pointer to a resmgr_context_t structure that the resource-manager library uses to pass context information between functions.
msg
The value you want to use for the structure's iov_base member.
nbytes
The value you want to use for the structure's iov_len member.

Library:

libc

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

Description:

The _RESMGR_PTR() macro gets one part from the ctp->iov structure (see resmgr_context_t) and fills in its fields. The macro is equivalent to:

SETIOV (ctp->iov, msg, nbytes)

returning _RESMGR_NPARTS (1).

Classification:

QNX Neutrino

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

See also:

resmgr_context_t, _RESMGR_NPARTS(), _RESMGR_STATUS(), SETIOV()


[Previous] [Contents] [Index] [Next]