MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _tty_workqueue_init

Function _tty_workqueue_init

components/drivers/serial/serial_tty.c:367–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367static int _tty_workqueue_init(void)
368{
369 if (_ttyworkq != RT_NULL)
370 return RT_EOK;
371
372 _ttyworkq = rt_workqueue_create("ttyworkq", RT_SYSTEM_WORKQUEUE_STACKSIZE,
373 LWP_TTY_WORKQUEUE_PRIORITY);
374 RT_ASSERT(_ttyworkq != RT_NULL);
375
376 _setup_debug_rxind_hook();
377
378 return RT_EOK;
379}
380INIT_PREV_EXPORT(_tty_workqueue_init);
381
382static rt_err_t _match_tty_iter(struct rt_object *obj, void *data)

Callers

nothing calls this directly

Calls 2

rt_workqueue_createFunction · 0.85
_setup_debug_rxind_hookFunction · 0.85

Tested by

no test coverage detected