Date: Sat, 31 Jan 1998 23:23:28 -0700 From: "Justin T. Gibbs" <gibbs@plutotech.com> To: Garrett Wollman <wollman@FreeBSD.ORG> Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: Re: cvs commit: src/sys/scsi scsi_ioctl.c src/sys/sys scsiio.h Message-ID: <199802010626.XAA29540@pluto.plutotech.com> In-Reply-To: Your message of "Sat, 31 Jan 1998 20:13:14 PST." <199802010413.UAA03294@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
CAM offers something similar already to what you have here. Essentially you can open up the transport layer and retrieve device information as well as a list of peripherals that have attached to a device. You won't get the dev_t back, but you do get the peripheral name and unit number which should allow you to do the rest. >wollman 1998/01/31 20:13:14 PST > > Modified files: > sys/scsi scsi_ioctl.c > sys/sys scsiio.h > Log: > Add a new ioctl, SCSIOCGETDEVINFO, which takes a device ID and uses it > to look up information about that device. Right now, all it does > is give back the dev_t for the device, if known, since that's all > I needed, but hopefully the SCSI mavens will come up with a more generally > useful structure. > > Revision Changes Path > 1.28 +16 -2 src/sys/scsi/scsi_ioctl.c > 1.9 +9 -1 src/sys/sys/scsiio.h > -- Justin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802010626.XAA29540>