rx_run_loop
ret = pthread_create(&rx_thread, NULL, rx_run_loop, &dev);
static void *rx_run_loop(void *);