Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751517AbWHWJ6c (ORCPT ); Wed, 23 Aug 2006 05:58:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751514AbWHWJ6c (ORCPT ); Wed, 23 Aug 2006 05:58:32 -0400 Received: from cantor2.suse.de ([195.135.220.15]:9942 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S1751502AbWHWJ6b (ORCPT ); Wed, 23 Aug 2006 05:58:31 -0400 To: Evgeniy Polyakov Cc: Jari Sundell , David Miller , kuznet@ms2.inr.ac.ru, nmiell@comcast.net, linux-kernel@vger.kernel.org, drepper@redhat.com, netdev@vger.kernel.org, zach.brown@oracle.com, hch@infradead.org Subject: Re: [take12 0/3] kevent: Generic event handling mechanism. References: <20060822231129.GA18296@ms2.inr.ac.ru> <20060822.173200.126578369.davem@davemloft.net> <20060823065659.GC24787@2ka.mipt.ru> <20060823000758.5ebed7dd.akpm@osdl.org> <20060823071002.GA16400@2ka.mipt.ru> From: Andi Kleen Date: 23 Aug 2006 11:58:20 +0200 In-Reply-To: <20060823071002.GA16400@2ka.mipt.ru> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 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: 924 Lines: 17 Evgeniy Polyakov writes: > > Let's then place there a structure with 64bit seconds and nanoseconds, > similar to timspec, but without longs there. You need 64bit (or at least more than 32bit) for the seconds, otherwise you add a y2038 problem which would be sad in new code. Remember you might be still alive then ;-) Ok one could argue that on 32bit architectures 2038 is so deeply embedded that it doesn't make much difference, but I still think it would be better to not readd it to new interfaces there. 64bit longs on 32bit is fine, as long as you use aligned_u64, never long long or u64 (which has varying alignment between i386 and x86-64) -Andi - 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/