Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262190AbUK3RKJ (ORCPT ); Tue, 30 Nov 2004 12:10:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262200AbUK3RJv (ORCPT ); Tue, 30 Nov 2004 12:09:51 -0500 Received: from fw.osdl.org ([65.172.181.6]:7861 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S262201AbUK3Q54 (ORCPT ); Tue, 30 Nov 2004 11:57:56 -0500 Date: Tue, 30 Nov 2004 08:57:42 -0800 (PST) From: Linus Torvalds To: David Howells cc: David Woodhouse , Alexandre Oliva , Paul Mackerras , Greg KH , Matthew Wilcox , hch@infradead.org, linux-kernel@vger.kernel.org, libc-hacker@sources.redhat.com Subject: Re: [RFC] Splitting kernel headers and deprecating __KERNEL__ In-Reply-To: <9122.1101832431@redhat.com> Message-ID: References: <19865.1101395592@redhat.com> <20041125165433.GA2849@parcelfarce.linux.theplanet.co.uk> <1101406661.8191.9390.camel@hades.cambridge.redhat.com> <20041127032403.GB10536@kroah.com> <16810.24893.747522.656073@cargo.ozlabs.ibm.com> <1101828924.26071.172.camel@hades.cambridge.redhat.com> <9122.1101832431@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 977 Lines: 24 On Tue, 30 Nov 2004, David Howells wrote: > > If you did user annotations you'd have to solve the problem of applying it to > #defines and still allowing the constants to be used in assembly. Obviously > this is not impossible. This is trivial with __KERNEL__ or separation into > other files. Annotations don't have to be per-entry. It can be something as simple as "this particular file is exposed to user space", or "things from here to here are exposed to user space". And while automation is good, sometimes automation isn't even worth it. I suspect it might be good just to _comment_ the structures we expose to user space, even if it's never used for anything but as a note to tell people not to change it. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/