| 521 | } |
| 522 | |
| 523 | static void rpmsgdev_server_created(FAR struct rpmsg_device *rdev, |
| 524 | FAR void *priv) |
| 525 | { |
| 526 | struct rpmsgdev_export_s *export = priv; |
| 527 | char buf[RPMSG_NAME_SIZE]; |
| 528 | |
| 529 | if (strcmp(export->remotecpu, rpmsg_get_cpuname(rdev)) == 0) |
| 530 | { |
| 531 | snprintf(buf, sizeof(buf), "%s%s", export->prefix, |
| 532 | strrchr(export->localpath, '/')); |
| 533 | rpmsgdev_ns_bind(rdev, export, buf, RPMSG_ADDR_ANY); |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | /**************************************************************************** |
| 538 | * Public Functions |
nothing calls this directly
no test coverage detected