tx_run_loop
ret = pthread_create(&tx_thread, NULL, tx_run_loop, &dev);
static void *tx_run_loop(void *);