MCPcopy Create free account
hub / github.com/F-Stack/f-stack / skeldma_stop

Function skeldma_stop

dpdk/drivers/dma/skeleton/skeleton_dmadev.c:150–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150static int
151skeldma_stop(struct rte_dma_dev *dev)
152{
153 struct skeldma_hw *hw = dev->data->dev_private;
154
155 hw->exit_flag = true;
156 rte_delay_ms(1);
157
158 (void)pthread_cancel((pthread_t)hw->thread.opaque_id);
159 rte_thread_join(hw->thread, NULL);
160
161 return 0;
162}
163
164static int
165vchan_setup(struct skeldma_hw *hw, int16_t dev_id, uint16_t nb_desc)

Callers

nothing calls this directly

Calls 2

rte_delay_msFunction · 0.85
rte_thread_joinFunction · 0.50

Tested by

no test coverage detected