Re: share COMPATIBLE_IOCTL()s across architectures

Arnd Bergmann
2003-03-20T10:20:11Z

On Thursday 20 March 2003 03:38, Andi Kleen wrote:

> This would work for COMPATIBLE_IOCTLS, but the conversions handlers
> would need a new asm/ file for the macros.

If this is just about HANDLE_IOCTL, IOCTL_TABLE_START etc., they look
trivial enough to be put in asm/compat.h. They even appear to be
arch independent even though they have inline asm.

> They're declared with assembler
> magic to avoid declaring all the functions. This way you need less files.
Ah, I have always wondered why it is done in such a strange way for some
architectures.