Date: Tue, 03 Apr 2007 02:37:03 -0600 From: Scott Long <scottl@samsco.org> To: Roman Divacky <rdivacky@freebsd.org> Cc: scsi@freebsd.org Subject: Re: question about fbsd scsi layer Message-ID: <4612122F.70808@samsco.org> In-Reply-To: <20070403080806.GA60720@freebsd.org> References: <20070403080806.GA60720@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Roman Divacky wrote: > hi > > I am trying to port some semi-driver for linux sg device from netbsd to > freebsd (in linux emulation layer) and it uses scsi. the netbsd code > looks basically like this: > > struct scsireq req; > > req.flags = SCCMD_WRITE; > req.cmd = cmd; > ...further initialization of req... > > ioctl(fp, SCIOCCOMAND, &req, td); > > return req to userland; > > I don't understand how to do this in FreeBSD, we don't have SCIOCCOMAND etc. > > can you point me in the right way? > > thnx > > roman > > p.s. please CC me as I am not subscribed to this ml There is absolutely no similarity between the SCSI layers in FreeBSD and NetBSD. I suggest you read the various CAM man pages and look at how camcontrol is written. Scott
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4612122F.70808>