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

Function rpmsg_post

drivers/rpmsg/rpmsg.c:178–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178int rpmsg_post(FAR struct rpmsg_endpoint *ept, FAR sem_t *sem)
179{
180 FAR struct rpmsg_s *rpmsg;
181
182 if (!ept || !sem)
183 {
184 return -EINVAL;
185 }
186
187 rpmsg = rpmsg_get_by_rdev(ept->rdev);
188 if (!rpmsg || !rpmsg->ops->post)
189 {
190 return nxsem_post(sem);
191 }
192
193 return rpmsg->ops->post(rpmsg, sem);
194}
195
196FAR const char *rpmsg_get_local_cpuname(FAR struct rpmsg_device *rdev)
197{

Callers 15

rpmsgmtd_default_handlerFunction · 0.85
rpmsgmtd_bread_handlerFunction · 0.85
rpmsgmtd_read_handlerFunction · 0.85
rpmsgmtd_ioctl_handlerFunction · 0.85
rpmsgmtd_ns_boundFunction · 0.85
rpmsgdev_default_handlerFunction · 0.85
rpmsgdev_read_handlerFunction · 0.85
rpmsgdev_ioctl_handlerFunction · 0.85
rpmsgdev_ns_boundFunction · 0.85

Calls 2

rpmsg_get_by_rdevFunction · 0.85
nxsem_postFunction · 0.85

Tested by

no test coverage detected