Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964811AbWHWKFX (ORCPT ); Wed, 23 Aug 2006 06:05:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964810AbWHWKFX (ORCPT ); Wed, 23 Aug 2006 06:05:23 -0400 Received: from relay.2ka.mipt.ru ([194.85.82.65]:20413 "EHLO 2ka.mipt.ru") by vger.kernel.org with ESMTP id S964805AbWHWKFV (ORCPT ); Wed, 23 Aug 2006 06:05:21 -0400 Date: Wed, 23 Aug 2006 14:03:03 +0400 From: Evgeniy Polyakov To: Andi Kleen 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. Message-ID: <20060823100303.GA1144@2ka.mipt.ru> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.7.5 (2ka.mipt.ru [0.0.0.0]); Wed, 23 Aug 2006 14:03:07 +0400 (MSD) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1210 Lines: 32 On Wed, Aug 23, 2006 at 11:58:20AM +0200, Andi Kleen (ak@suse.de) wrote: > 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 ;-) I hope so :) > 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) Btw, aligned_u64 is not exported to userspace. I commited a change with __u64 nanoseconds without any strucutres. Do we really need a structure? > -Andi -- Evgeniy Polyakov - 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/