MCPcopy Create free account
hub / github.com/apache/nuttx / rpmsg_wait

Function rpmsg_wait

drivers/rpmsg/rpmsg.c:160–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 ****************************************************************************/
159
160int rpmsg_wait(FAR struct rpmsg_endpoint *ept, FAR sem_t *sem)
161{
162 FAR struct rpmsg_s *rpmsg;
163
164 if (!ept || !sem)
165 {
166 return -EINVAL;
167 }
168
169 rpmsg = rpmsg_get_by_rdev(ept->rdev);
170 if (!rpmsg || !rpmsg->ops->wait)
171 {
172 return nxsem_wait_uninterruptible(sem);
173 }
174
175 return rpmsg->ops->wait(rpmsg, sem);
176}
177
178int rpmsg_post(FAR struct rpmsg_endpoint *ept, FAR sem_t *sem)
179{

Callers 15

rpmsgmtd_bwriteFunction · 0.85
rpmsgmtd_writeFunction · 0.85
rpmsgmtd_send_recvFunction · 0.85
rpmsgdev_send_recvFunction · 0.85
rpmsgblk_writeFunction · 0.85
rpmsgblk_send_recvFunction · 0.85
ioe_rpmsg_wait_readyFunction · 0.85
ioe_rpmsg_sendrecvFunction · 0.85
ioe_rpmsg_client_destroyFunction · 0.85

Calls 3

rpmsg_get_by_rdevFunction · 0.85
waitMethod · 0.80

Tested by

no test coverage detected