FreeBSD/sys/dev/usb/serial/usb_serial.c
/*------------------------------------------------------------------------*
 *	ucom_unref
 *
 * This function will decrement the super UCOM reference count.
 *
 * Return values:
 * 0: UCOM structures are still referenced.
 * Else: UCOM structures are no longer referenced.
 *------------------------------------------------------------------------*/
ucom_unref
This function will decrement the super UCOM reference count.

Return values:
0: UCOM structures are still referenced.
Else: UCOM structures are no longer referenced.
ucom_unref This function will decrement the super UCOM reference count . Return values : 0 : UCOM structures are still referenced . Else : UCOM structures are no longer referenced .
int
ucom_unref(struct ucom_super_softc *ssc)
{
	int retval;
	mtx_lock(&ucom_mtx);
	retval = (ssc->sc_refs < 2);
	ssc->sc_refs--;
	mtx_unlock(&ucom_mtx);
	if (retval)
		ucom_free_unit(ssc);
	return (retval);
}
int ucom_unref ( struct ucom_super_softc * ssc ) { int retval ; mtx_lock ( & ucom_mtx ) ; retval = ( ssc -> sc_refs < 2 ) ; ssc -> sc_refs -- ; mtx_unlock ( & ucom_mtx ) ; if ( retval ) ucom_free_unit ( ssc ) ; return ( retval ) ; }
ucom_unref
 This function will decrement the super UCOM reference count.
ucom_unref This function will decrement the super UCOM reference count .