Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262410AbVERWVw (ORCPT ); Wed, 18 May 2005 18:21:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262404AbVERWVv (ORCPT ); Wed, 18 May 2005 18:21:51 -0400 Received: from fmr17.intel.com ([134.134.136.16]:16308 "EHLO orsfmr002.jf.intel.com") by vger.kernel.org with ESMTP id S262283AbVERWQd (ORCPT ); Wed, 18 May 2005 18:16:33 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17035.48794.636650.724153@sodium.jf.intel.com> Date: Wed, 18 May 2005 15:15:54 -0700 To: linux-kernel@vger.kernel.org Cc: joe.korty@ccur.com, robustmutexes@lists.osdl.org, george@mvista.com Subject: [RFC] A more general timeout specification In-Reply-To: <20050518201517.GA16193@tsunami.ccur.com> References: <20050518201517.GA16193@tsunami.ccur.com> X-Mailer: VM 7.19 under Emacs 21.3.1 From: Inaky Perez-Gonzalez Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1268 Lines: 35 >>>>> Joe Korty writes: > [ for comment only ] The fusyn (robust mutexes) project proposes the > creation of a more general data structure, 'struct timeout', for the > specification of timeouts in new services. In this structure, the > user specifies: > a time, in timespec format. the clock the time is specified > against (eg, CLOCK_MONOTONIC). whether the time is absolute, or > relative to 'now'. > That is, all combinations of useful timeout attributes become > possible. ... The main reason why we are asking for this is that timeouts in POSIX calls are always specified in an absolute form. Because most system calls take it in a relative form, glibc has to call the kernel twice (one to get the time, one to do the syscall with the computed delta). By having new syscalls that take advantage of this timeout interface, we can save this extra kernel call. We believe it is generic enough for interfacing with user space timeouts, although we'd like to hear feedback :) -- Inaky - 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/