question about fbsd scsi layer

Roman Divacky rdivacky at freebsd.org
Tue Apr 3 08:28:04 UTC 2007


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


More information about the freebsd-scsi mailing list