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

Function syslog_rpmsg_server_init

drivers/syslog/syslog_rpmsg_server.c:297–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 ****************************************************************************/
296
297int syslog_rpmsg_server_init(void)
298{
299#ifdef CONFIG_SYSLOG_RPMSG_SERVER_CHARDEV
300 int ret;
301
302 ret = register_driver("/dev/logrpmsg", &g_syslog_rpmsg_fops, 0666, NULL);
303 if (ret < 0)
304 {
305 return ret;
306 }
307#endif
308
309 return rpmsg_register_callback(NULL,
310 NULL,
311 NULL,
312 syslog_rpmsg_ns_match,
313 syslog_rpmsg_ns_bind);
314}

Callers 1

syslog_initializeFunction · 0.85

Calls 2

register_driverFunction · 0.85
rpmsg_register_callbackFunction · 0.85

Tested by

no test coverage detected