Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751066Ab0HSEiG (ORCPT ); Thu, 19 Aug 2010 00:38:06 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:47829 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750758Ab0HSEiE (ORCPT ); Thu, 19 Aug 2010 00:38:04 -0400 Date: Wed, 18 Aug 2010 21:39:47 -0700 From: Andrew Morton To: Greg KH Cc: "H. Peter Anvin" , Alexander Shishkin , lkml@vger.kernel.org, "Kirill A. Shutemov" , Thomas Gleixner , John Stultz , Martin Schwidefsky , Jon Hunter , Ingo Molnar , Peter Zijlstra , "Paul E. McKenney" , David Howells , Avi Kivity , John Kacur , Chris Friesen , Kay Sievers , linux-kernel@vger.kernel.org Subject: Re: [PATCH] [RFCv2] notify userspace about time changes Message-Id: <20100818213947.360b4ce2.akpm@linux-foundation.org> In-Reply-To: <20100819040937.GA8646@suse.de> References: <1282139739-23832-1-git-send-email-virtuoso@slind.org> <20100818155702.bc62b2a6.akpm@linux-foundation.org> <4C6C7034.4050501@zytor.com> <20100818165303.dd52695a.akpm@linux-foundation.org> <20100819040937.GA8646@suse.de> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.9; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 819 Lines: 25 On Wed, 18 Aug 2010 21:09:37 -0700 Greg KH wrote: > On Wed, Aug 18, 2010 at 04:53:03PM -0700, Andrew Morton wrote: > > Is sysfs the right interface for this thing? Bear in mind that > > CONFIG_SYSFS does exist. > > > > > + fd = open("/sys/kernel/time_notify", O_WRONLY); > > > + fdprintf(fd, "%d 1 0 1 1", efd); > > > > why not > > > > sys_time_notify(efd, 1, 0, 1, 1); > > Yeah, that would be much better than a sysfs file, this is abusing the > sysfs interface quite a lot. > (time_change_notify would be a better syscall name). -- 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/