> There's a check for -ENOIOCTLCMD in vfs_ioctl() -- though it generates> -EINVAL rather than -ENOTTY (why?).Good question - perhaps someone didn't read the spec 8)