| 1042 | ****************************************************************************/ |
| 1043 | |
| 1044 | static 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 |
nothing calls this directly
no test coverage detected