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

Function _chn0_post

components/vbus/vbus.c:406–417  ·  view source on GitHub ↗

Posts in channel0 should be sync. */

Source from the content-addressed store, hash-verified

404
405/* Posts in channel0 should be sync. */
406static rt_err_t _chn0_post(const void *data,
407 rt_size_t size,
408 int timeout)
409{
410 rt_err_t err;
411
412 rt_completion_init(&_chn0_post_cmp);
413 err = rt_vbus_post(0, 0, data, size, timeout);
414 if (err != RT_EOK)
415 return err;
416 return rt_completion_wait(&_chn0_post_cmp, timeout);
417}
418
419#define _BUS_IN_THRD_STACK_SZ 1024
420#define _BUS_IN_THRD_PRIO (_BUS_OUT_THRD_PRIO+1)

Callers 6

rt_vbus_data_pushFunction · 0.85
rt_vbus_data_popFunction · 0.85
_chn0_echo_withFunction · 0.85
_chn0_actorFunction · 0.85
rt_vbus_request_chnFunction · 0.85
rt_vbus_close_chnFunction · 0.85

Calls 3

rt_vbus_postFunction · 0.85
rt_completion_waitFunction · 0.85
rt_completion_initFunction · 0.50

Tested by

no test coverage detected