Re: include file conflict

H. Peter Anvin (hpa@transmeta.com)
Mon, 16 Nov 1998 11:29:56 -0800 (PST)


>
> That I agree with 100%. For example, the autofs code contains
> linux/auto_fs.h and fs/autofs/autofs_i.h which are much that way.
>
> I've been thinking about this for a while myself, and it would be
> interesting to put something like a major version number and datestamp
> into the beginning of the interface header file:
>
> /*
> * linux/ext2fs.h
> *
> * INTERFACE_VERSION=1, DATECODE=981012
> */
>

I would use actual #define's. That is what autofs does, in fact.

-hpa

>
> P.S. I prefer to use linux/foo.h for the public interface, and
> linux/fooP.h for the kernel-private information; hence linux/serial.h
> and linux/serialP.h. Other people like to use linux/foo_i.h for the
> publically exported interface. This is just a matter of taste, but it
> seems nicer to me to reserve the "uglier" name for the internal header
> file, and to use the "nicer" name for the public header file.
>

I use *_i.h for <i>nternal.

-hpa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/