On Thu, Aug 03, 2000 at 09:35:44PM -0400, Doug Gilbert wrote:
> BenHanokh Gabriel wrote:
> > is there a way in user-space to map from the dev_t ( retrive from
> > stat(2) ) to the scsi target & logical ids?
> > if no can i do it in kernel-space ?
>
> With an open file descriptor to a SCSI device the
> SCSI_IOCTL_GET_IDLUN ioctl() can be used.
Or,
you may use scsidev to create device nodes which carry the information in
the name.
http://www.garloff.de/kurt/linux/scsidev/
ftp://ftp.suse.de/pub/people/garloff/linux/scsidev/
Regards,
--
Kurt Garloff <[EMAIL PROTECTED]> Eindhoven, NL
GPG key: See mail header, key servers Linux kernel development
SuSE GmbH, Nuernberg, FRG SCSI, Security
PGP signature