freebsd-skq/sys/compat
scottl 1320f9f144 Add the CAM 'SG' peripheral device. This device implements a subset of the
Linux SCSI SG passthrough device API.  The intention is to allow for both
running of Linux apps that want to talk to /dev/sg* nodes, and to facilitate
porting of apps from Linux to FreeBSD.  As such, both native and linuxolator
entry points and definitions are provided.

Caveats:
 - This does not support the procfs and sysfs nodes that the Linux SG
   driver provides.  Some Linux apps may rely on these for operation,
   others may only use them for informational purposes.
 - More ioctls need to be implemented.
 - Linux uses a naming scheme of "sg[a-z]" for devices, while FreeBSD uses a
   scheme of "sg[0-9]".  Devfs aliasis (symlinks) are automatically created
   to link the two together.  However, tools like camcontrol only see the
   native names.
 - Some operations were originally designed to return byte counts or other
   data directly as the syscall return value.  The linuxolator doesn't appear
   to support this well, so this driver just punts for these cases.

Now that the driver is in place, others are welcome to add missing
functionality.  Thanks to Roman Divacky for pushing this work along.
2007-04-07 19:40:58 +00:00
..
freebsd32 Regen. 2006-12-20 19:39:10 +00:00
ia32 Move some declaration of 32-bit signal structures into file 2006-10-05 01:56:11 +00:00
linprocfs Fix kernel module dependency. linprocfs depends on sysvmsg and sysvsem. 2007-04-06 18:15:56 +00:00
linsysfs Add a pn_destroy field to pfs_node. This field points to a destructor 2007-03-12 12:16:52 +00:00
linux Add the CAM 'SG' peripheral device. This device implements a subset of the 2007-04-07 19:40:58 +00:00
ndis We have strcasecmp() in libkern now. 2007-04-06 11:18:57 +00:00
netbsd Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
opensolaris Please welcome ZFS - The last word in file systems. 2007-04-06 01:09:06 +00:00
pecoff remove dead code 2005-02-22 01:26:48 +00:00
svr4 Replace custom file descriptor array sleep lock constructed using a mutex 2007-04-04 09:11:34 +00:00