[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121221051921.GQ4939@ZenIV.linux.org.uk>
Date: Fri, 21 Dec 2012 05:19:21 +0000
From: Al Viro <viro@...IV.linux.org.uk>
To: "H. Peter Anvin" <hpa@...or.com>
Cc: Arnd Bergmann <arnd@...db.de>, linux-arch@...r.kernel.org,
Vineet.Gupta1@...opsys.com, linux-kernel@...r.kernel.org,
James Hogan <james.hogan@...tec.com>
Subject: Re: new architectures, time_t __kernel_long_t
On Thu, Dec 20, 2012 at 09:05:30PM -0800, H. Peter Anvin wrote:
> >... as long as we do not have typedef __kernel_foo_t foo_t in linux/types.h.
> >
>
> In the case of things like nlink_t and dev_t I would suggest we
> explicitly call out the types as kernel and user. I would suggest
> knlink_t and unlink_t but the latter made me want to stab my eyes
> out due to its confusion potential, so I wonder if we should
> establish a new convention with _kt (kernel type) and _ut (user
> type) suffixes, so nlink_kt and nlink_ut, alternatively one could
> consider k_nlink_t and u_nlink_t.
What the hell for? _Which_ userland nlink_t, anyway? We have quite a few
struct stat variants in there. Sorry, but I really don't see any point
in that, and a lot of potential for confusion. Marshalling is about the
only thing we need the userland ones for and the code doing it is just fine
with the only object of that type in sight being the field of e.g. struct stat
with given name...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists