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

PtGetRcvidPidNd()

Get the PID and ND from a RCVID

Synopsis:

pid_t PtGetRcvidPid( int rcvid,
                     int *nd );

Arguments:

rcvid
The receive ID you want to get the PID and node descriptor from
nd
The address where the function stores the node descriptor associated with the rcvid. You can pass NULL, in which case the function will fail with EREMOTE if the rcvid is from a remote process.

Library:

ph

Description:

This function should be used to obtain the process ID (PID) and node descriptor (ND) from the receive ID (RCVID). It might be needed if a nonspecific input procedure attaches a specific input procedure.

Returns:

The PID on success or:

EREMOTE
The rcvid is from a remote process, but you passed NULL for nd.
-1
an error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtAppAddInput()