Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758284AbXIWTDR (ORCPT ); Sun, 23 Sep 2007 15:03:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755222AbXIWTDG (ORCPT ); Sun, 23 Sep 2007 15:03:06 -0400 Received: from mail.gmx.net ([213.165.64.20]:33360 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754670AbXIWTDF (ORCPT ); Sun, 23 Sep 2007 15:03:05 -0400 X-Authenticated: #24879014 X-Provags-ID: V01U2FsdGVkX18rpWQesiwrjZzna/Bj7Q+ByFoM5fasd+QPzhYTw/ R2cWe/mv83K6QK Message-ID: <46F6B864.9080902@gmx.net> Date: Sun, 23 Sep 2007 21:03:00 +0200 From: Michael Kerrisk User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Davide Libenzi CC: Ulrich Drepper , geoff@gclare.org.uk, lkml , Andrew Morton , Thomas Gleixner , Christoph Hellwig , Jonathan Corbet , Randy Dunlap , vda.linux@googlemail.com, Linus Torvalds , Lee Schermerhorn , david@hardeman.nu Subject: Re: RFC: A revised timerfd API References: <46EF7DDA.2070401@gmx.net> <46F514C9.5010208@gmx.net> <46F6A37C.9010009@gmx.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1000 Lines: 22 Davide Libenzi wrote: > On Sun, 23 Sep 2007, Davide Libenzi wrote: > >> On Sun, 23 Sep 2007, Michael Kerrisk wrote: >> >>> I applied this patch against 2.6.27-rc7, and wired up the syscalls as shown >>> in the definitions below. When I ran the the program below, my system >>> immediately froze. Can you try it on your system please. >> There's an hrtimer_init() missing in timerfd_create(). I'll refactor the >> patch. > > There's the case of a timerfd_gettime return status when the timerfd has > not been set yet (ie, soon after a timerfd_create), to handle. > Current way is to return an (itimerspec) { 0, 0 }. Ok? Seems reasonable. In the analogous situation, the POSIX timers API returns a structure containing all zeros, at least on Linux. - 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/