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

Function rpmsgdev_device_created

drivers/misc/rpmsgdev.c:1044–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042 ****************************************************************************/
1043
1044static void rpmsgdev_device_created(FAR struct rpmsg_device *rdev,
1045 FAR void *priv_)
1046{
1047 FAR struct rpmsgdev_s *priv = priv_;
1048 char buf[RPMSG_NAME_SIZE];
1049
1050 if (strcmp(priv->remotecpu, rpmsg_get_cpuname(rdev)) == 0)
1051 {
1052 priv->ept.priv = priv;
1053 priv->ept.ns_bound_cb = rpmsgdev_ns_bound;
1054 snprintf(buf, sizeof(buf), "%s%s", RPMSGDEV_NAME_PREFIX,
1055 priv->remotepath);
1056 rpmsg_create_ept(&priv->ept, rdev, buf,
1057 RPMSG_ADDR_ANY, RPMSG_ADDR_ANY,
1058 rpmsgdev_ept_cb, NULL);
1059 }
1060}
1061
1062/****************************************************************************
1063 * Name: rpmsgdev_device_destroy

Callers

nothing calls this directly

Calls 3

rpmsg_get_cpunameFunction · 0.85
strcmpFunction · 0.50
snprintfFunction · 0.50

Tested by

no test coverage detected