From owner-cvs-all Sat Jan 31 22:29:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA25552 for cvs-all-outgoing; Sat, 31 Jan 1998 22:29:41 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from pluto.plutotech.com (mail.plutotech.com [206.168.67.137]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA25295; Sat, 31 Jan 1998 22:26:08 -0800 (PST) (envelope-from gibbs@plutotech.com) Received: from narnia.plutotech.com (narnia.plutotech.com [206.168.67.130]) by pluto.plutotech.com (8.8.7/8.8.5) with ESMTP id XAA29540; Sat, 31 Jan 1998 23:26:07 -0700 (MST) Message-Id: <199802010626.XAA29540@pluto.plutotech.com> X-Mailer: exmh version 2.0.1 12/23/97 To: Garrett Wollman 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 In-reply-to: Your message of "Sat, 31 Jan 1998 20:13:14 PST." <199802010413.UAA03294@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 31 Jan 1998 23:23:28 -0700 From: "Justin T. Gibbs" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe cvs-all" 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