FreeBSD/sys/dev/mrsas/mrsas.c
/*
 * In the cdevsw routines, we find our softc by using the si_drv1 member of
 * struct cdev.  We set this variable to point to our softc in our attach
 * routine when we create the /dev entry.
 */
In the cdevsw routines, we find our softc by using the si_drv1 member of
struct cdev.  We set this variable to point to our softc in our attach
routine when we create the /dev entry.
In the cdevsw routines we find our softc by using the si_drv1 member of struct cdev . We set this variable to point to our softc in our attach routine when we create the / dev entry .
int
mrsas_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
{
	struct mrsas_softc *sc;
	sc = dev->si_drv1;
	return (0);
}
int mrsas_open ( struct cdev * dev , int oflags , int devtype , struct thread * td ) { struct mrsas_softc * sc ; sc = dev -> si_drv1 ; return ( 0 ) ; }
In the cdevsw routines, we find our softc by using the si_drv1 member of
 struct cdev.
In the cdevsw routines we find our softc by using the si_drv1 member of struct cdev .