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

Function rpmsgdev_server_created

drivers/misc/rpmsgdev_server.c:523–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523static 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

Callers

nothing calls this directly

Calls 5

rpmsg_get_cpunameFunction · 0.85
rpmsgdev_ns_bindFunction · 0.85
strcmpFunction · 0.50
snprintfFunction · 0.50
strrchrFunction · 0.50

Tested by

no test coverage detected