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

Function rpmsgdev_get_tx_payload_buffer

drivers/misc/rpmsgdev.c:761–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759 ****************************************************************************/
760
761static FAR void *rpmsgdev_get_tx_payload_buffer(FAR struct rpmsgdev_s *priv,
762 FAR uint32_t *len)
763{
764 int sval;
765
766 nxsem_get_value(&priv->wait, &sval);
767 if (sval <= 0)
768 {
769 rpmsg_wait(&priv->ept, &priv->wait);
770 rpmsg_post(&priv->ept, &priv->wait);
771 }
772
773 return rpmsg_get_tx_payload_buffer(&priv->ept, len, true);
774}
775
776/****************************************************************************
777 * Name: rpmsgdev_send_recv

Callers 2

rpmsgdev_writeFunction · 0.85
rpmsgdev_ioctlFunction · 0.85

Calls 3

nxsem_get_valueFunction · 0.85
rpmsg_waitFunction · 0.85
rpmsg_postFunction · 0.85

Tested by

no test coverage detected