Date: Fri, 03 Mar 2000 12:36:08 +0530 From: Nanda Kumar <nanda@procsys.com> To: Mike Smith <msmith@freebsd.org> Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: IOCTL support in SCSI block driver Message-ID: <38BF6460.703A@procsys.com> References: <200003010807.AAA04798@mass.cdrom.com> <38BE4879.F41@procsys.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, I am just resending the mail. After going through the code i am almost lost. I went through the mylex code to find how they implement the control interface. But i have some doubts regarding this. Mainly these doubts come since i am still quiete new to the FreeBSD world and don't have good text books regarding how to write device drivers etc. 1). In the user space how do i specify a controller to communicate with that ? For eg. if i want to open the device and a send an IOCTL how do i specify that ? In our case actual disks will be seen as part of target discovery done through the CAM SCSI interface. 2). I found that the while registering the character device the "softc" structure does not come to picture at all. But later while opening the device the "softc" structure is obtained using "devclass_get_softc". How is it obtained ? If there are some documents regarding these you can tell me and i will go through it. Regards, Nandan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38BF6460.703A>