]> granicus.if.org Git - zfs/commit
Register a basic compat ioctl handler (32 vs 64 bit compat)
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 21 Jul 2009 17:13:58 +0000 (10:13 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 21 Jul 2009 17:13:58 +0000 (10:13 -0700)
commit78d6de97bd0749b03af86ff5f76edae4bfb18b42
treec16d0b581040a28189ff0d97906059e4ff7b215f
parentac95d0974bb36000b979f5b2dd404638ea87baf7
Register a basic compat ioctl handler (32 vs 64 bit compat)
Simply pass the ioctl on to the normal handler.  If the ioctl
helper macros are used correctly this should be safe as they
will handle the packing/unpacking of the data encoded in the
ioctl command.  And actually, if the caller does not use the
IO* macros at all, and just passes small values, it will probably
be OK as well.  We only get in to trouble if they try and use
the upper 32-bits.  Endianness is not really a concern here, we
we are pretty much assumed they user and kernel will match.
module/spl/spl-module.c