FreeBSD/sys/dev/mrsas/mrsas.c
/*
 * mrsas_get_tunables:	get tunable parameters.
 * input:				Adapter instance soft state
 *
 * Get tunable parameters. This will help to debug driver at boot time.
 */
get tunable parameters.
input:                               Adapter instance soft state

Get tunable parameters. This will help to debug driver at boot time.
get tunable parameters . input : Adapter instance soft state Get tunable parameters . This will help to debug driver at boot time .
static void
mrsas_get_tunables(struct mrsas_softc *sc)
{
	char tmpstr[80];
	sc->mrsas_debug = MRSAS_FAULT;
	sc->mrsas_io_timeout = MRSAS_IO_TIMEOUT;
	sc->mrsas_fw_fault_check_delay = 1;
	sc->reset_count = 0;
	sc->reset_in_progress = 0;
	TUNABLE_INT_FETCH("hw.mrsas.debug_level", &sc->mrsas_debug);
	TUNABLE_INT_FETCH("hw.mrsas.lb_pending_cmds", &sc->lb_pending_cmds);
	snprintf(tmpstr, sizeof(tmpstr), "dev.mrsas.%d.debug_level",
	    device_get_unit(sc->mrsas_dev));
	TUNABLE_INT_FETCH(tmpstr, &sc->mrsas_debug);
}
static void mrsas_get_tunables ( struct mrsas_softc * sc ) { char tmpstr [ 80 ] ; sc -> mrsas_debug = MRSAS_FAULT ; sc -> mrsas_io_timeout = MRSAS_IO_TIMEOUT ; sc -> mrsas_fw_fault_check_delay = 1 ; sc -> reset_count = 0 ; sc -> reset_in_progress = 0 ; TUNABLE_INT_FETCH ( " " , & sc -> mrsas_debug ) ; TUNABLE_INT_FETCH ( " " , & sc -> lb_pending_cmds ) ; snprintf ( tmpstr , sizeof ( tmpstr ) , " " , device_get_unit ( sc -> mrsas_dev ) ) ; TUNABLE_INT_FETCH ( tmpstr , & sc -> mrsas_debug ) ; }
mrsas_get_tunables:  get tunable parameters.
mrsas_get_tunables : get tunable parameters .
/* XXX default to some debugging for now */ /*
	 * Grab the global variables.
	 */ /*
	 * Grab the global variables.
	 */ /* Grab the unit-instance variables */