Re: video_usercopy() enforces change of VideoText IOCTLs since 2.6.8

From: Gerd Knorr
Date: Sat Oct 09 2004 - 07:41:26 EST


> I would prefer redefining them with respect
> to the arguments passed to the IOCTLs.

Thats possible as well.

> Nevertheless there is one big disadvantage: The userspace programs
> have to be recompiled because they of course have to use the same IOCTL
> definitions.

You can just keep the old ones and map them, so both old and new ones
will work (and internally only the new ones are used).
video_fix_command() does that for a number of v4l2 ioctls which
initially got a _IO* define with wrong read/write bits. You can either
just add the videotext ones there or translate them in the drivers right
before calling video_usercopy().

Gerd

--
return -ENOSIG;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/