Date: Tue, 2 Aug 2005 16:32:00 +0200 From: "Reinhold Huber" <rhuber@fs.tum.de> To: freebsd-questions@freebsd.org Subject: CAM SCSI, finding out bus ID, target and LUN Message-ID: <20050802143200.GA24341@fs.tum.de>
next in thread | raw e-mail | index | archive | help
Hello, I'm trying to get bus ID, target and LUN to an open fd which is afaik opened to the device special file, e.g. /dev/cd0 . So how do I get the information? Up to now, I didn't find IOCTL calls (like in NetBSD) which deliver this kind of info, and first tries to browse in CAM examples didn't help either. I tried on FreeBSD 5.3 and currently hope that there are no big changes to this between 5.3 and 5.4 or even -current. If I'm wrong with this, please correct me. Any pointer to docs or source is welcome. Best regards, Reinhold Huber
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050802143200.GA24341>