question about fbsd scsi layer
scottl at samsco.org
Tue Apr 3 08:37:18 UTC 2007
Roman Divacky wrote:
> 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?
> 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.
More information about the freebsd-scsi