|RSM_INTR_SIGNAL_WAIT_POLLFD(3RSM)||Remote Shared Memory Library Functions||RSM_INTR_SIGNAL_WAIT_POLLFD(3RSM)|
cc [ flag... ] file... -lrsm [ library ... ] #include <rsmapi.h> int rsm_intr_signal_wait_pollfd(struct pollfd fds, nfds_t nfds, int timeout, int *numfdsp);
The fds argument is an array of pollfd structures that correspond to both RSMAPI segments and other file descriptors. The rsm_memseg_get_pollfd(3RSM) is used to obtain a pollfd structure corresponding to an RSMAPI segment.
The number of file descriptors that have events is returned in numfdsp. This parameter can be set to NULL if the application is not interested in the number of file descriptors that have events. See poll(2) for descriptions of the pollfd structure as well as the nfds and timeout parameters.
It is the application's responsibility to establish the validity of a pollfd structure corresponding to an RSMAPI segment by ensuring that rsm_memseg_release_pollfd(3RSM) has not been called on the segment or that the segment has not been destroyed.
For file descriptors other than RSMAPI segments, the behavior of rsm_intr_signal_wait_pollfd() is similar to poll().
For file descriptors other than RSMAPI segments, the revents member of the pollfd struct is identical to that returned by poll(2).
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|
|April 9, 2016||OmniOS|