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

Function syslog_rpmsg_init

drivers/syslog/syslog_rpmsg.c:485–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485int syslog_rpmsg_init(void)
486{
487#ifdef CONFIG_SYSLOG_RPMSG_CHARDEV
488 int ret;
489
490 ret = register_driver(CONFIG_SYSLOG_DEVPATH, &g_syslog_rpmsgfops,
491 0666, &g_syslog_rpmsg);
492 if (ret < 0)
493 {
494 return ret;
495 }
496#endif
497
498 return rpmsg_register_callback(&g_syslog_rpmsg,
499 syslog_rpmsg_device_created,
500 syslog_rpmsg_device_destroy,
501 NULL,
502 NULL);
503}

Callers 1

syslog_initializeFunction · 0.85

Calls 2

register_driverFunction · 0.85
rpmsg_register_callbackFunction · 0.85

Tested by

no test coverage detected