From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261451AbVFCAOW (ORCPT ); Thu, 2 Jun 2005 20:14:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261464AbVFCAOW (ORCPT ); Thu, 2 Jun 2005 20:14:22 -0400 Received: from fog.sekrit.org ([66.92.77.184]:59615 "EHLO fog.sekrit.org") by vger.kernel.org with ESMTP id S261451AbVFCAOU (ORCPT ); Thu, 2 Jun 2005 20:14:20 -0400 Date: Thu, 2 Jun 2005 20:14:19 -0400 From: Gerald Britton To: Mikael Starvik Cc: linux-kernel@vger.kernel.org Subject: Re: Accessing monotonic clock from modules Message-ID: <20050603001419.GA15686@fog.sekrit.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 02, 2005 at 08:36:48AM +0200, Mikael Starvik wrote: > We would like to get the posix monotonic clock from a loadable module. > Would a patch to make do_posix_clock_monotonic_gettime exported ok or > should we do it in some other way? A possible use of a clean api would be in the packet rx timestamping code where one is interested in accurate inter-packet timing, but the only way of timestamping currently uses do_gettimeofday, so is fragile across time time changes. -- Gerald