/** * Get rid of the driver's private data. */ static void tx_link_destroy(txdrv_t *tx) { struct attr *attr = tx->opaque; bsched_source_remove(attr->bio); WFREE(attr); }
/** * Clear the socket-related information in the UDP scheduler. */ static void udp_sched_clear_sockets(udp_sched_t *us) { uint i; for (i = 0; i < N_ITEMS(us->bio); i++) { bio_source_t *bio = us->bio[i]; if (bio != NULL) { bsched_source_remove(bio); us->bio[i] = NULL; } } }