Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 1998 13:14:17 -0600 (MDT)
From:      "Kenneth D. Merry" <ken@plutotech.com>
To:        ckempf@enigami.com (Cory Kempf)
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: pass device usage questions
Message-ID:  <199807261914.NAA20680@panzer.plutotech.com>
In-Reply-To: <x7af5wjw5l.fsf@singularity.enigami.com> from Cory Kempf at "Jul 26, 98 02:37:42 pm"

index | next in thread | previous in thread | raw e-mail

Cory Kempf wrote...
> I am looking at the cdrecord scsi source, which seems to be pointing
> me at the pass devices.
> 
> My guess is that there should be one pass device for each SCSI device
> attached to the system?  

	Right.

> And this should be configured in the kernel config file, as well as
> /dev via MAKEDEV?  

	Right.

> Or is there a way to somehow autoconfigure these things?

	What do you mean, autoconfigure them?  If you have:

device pass0

	in your kernel config file, the passthrough device will attach to
every SCSI device you have.  You make as many passthrough devices as you
have devices in your system, like:

cd /dev
sh MAKEDEV pass8

	That will make pass[0-7].

> What is the xpt device?  Does it figure in anywhere? 

	It is the transport layer device.  Among other things, it is what
the userland CAM library uses to figure out which passthrough device
corresponds to a "regular" device.  e.g.  pass4 points to the same device
as da2.

> Assuming the above is true, are the pass devices the recommended way
> to talk with random (e.g. non-HD / tape / CD) scsi devices?  Or is
> there something else that I should be using?

	It depends on what you want to do.  If you want to send SCSI
commands directly to the device, you would use the passthrough driver.  If
you want an interface to the device, you would use the normal device driver
for it.  For instance, the cd driver has an ioctl interface, as does the ch
driver.  In most cases, the ioctl or read/write interfaces are used to talk
to devices.

Ken
-- 
Kenneth Merry
ken@plutotech.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807261914.NAA20680>