FreeBSD/sys/cam/cam_iosched.c
/*
 * gets the an available trim from the trim queue, if there's no trim
 * already pending. It removes this trim from the queue and the device
 * must explicitly reinstert it should the need arise.
 *
 * Assumes we're called with the periph lock held.
 */
gets the an available trim from the trim queue, if there's no trim
already pending. It removes this trim from the queue and the device
must explicitly reinstert it should the need arise.

Assumes we're called with the periph lock held.
gets the an available trim from the trim queue if there ' s no trim already pending . It removes this trim from the queue and the device must explicitly reinstert it should the need arise . Assumes we ' re called with the periph lock held .
struct bio *
cam_iosched_get_trim(struct cam_iosched_softc *isc)
{
	if (!cam_iosched_has_more_trim(isc))
		return NULL;
	return cam_iosched_next_trim(isc);
}
struct bio * cam_iosched_get_trim ( struct cam_iosched_softc * isc ) { if ( ! cam_iosched_has_more_trim ( isc ) ) return NULL ; return cam_iosched_next_trim ( isc ) ; }
gets the an available trim from the trim queue, if there's no trim
 already pending.
gets the an available trim from the trim queue if there ' s no trim already pending .