MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / remove_sources

Function remove_sources

libsigrok4DSL/hardware/DSL/dscope.c:1900–1908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1898}
1899
1900static void remove_sources(struct DSL_context *devc)
1901{
1902 int i;
1903 sr_info("%s: remove fds from polling", __func__);
1904 /* Remove fds from polling. */
1905 for (i = 0; devc->usbfd[i] != -1; i++)
1906 sr_source_remove(devc->usbfd[i]);
1907 g_free(devc->usbfd);
1908}
1909
1910static int receive_data(int fd, int revents, const struct sr_dev_inst *sdi)
1911{

Callers 1

receive_dataFunction · 0.70

Calls 1

sr_source_removeFunction · 0.85

Tested by

no test coverage detected