Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933617Ab0LUIAu (ORCPT ); Tue, 21 Dec 2010 03:00:50 -0500 Received: from mail-fx0-f43.google.com ([209.85.161.43]:62787 "EHLO mail-fx0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932545Ab0LUIAs (ORCPT ); Tue, 21 Dec 2010 03:00:48 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Zty9lpN65n2Tdp+C4dy2VEK2LHUKaYJ+wB3J+3mRgEcPEutIk5/9c3mVnh7+fHtk5v MhUfcMH34UkQjd5HGrByOka3TIv/hVYw8UIScYUH+Sd1ZRhFPo5IgbQ49sY1BFBwykqD jEyvmYq1P7wNRDYc2ua2NMENc4fsDHwodmU8k= Date: Tue, 21 Dec 2010 09:00:37 +0100 From: Richard Cochran To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, netdev@vger.kernel.org, Alan Cox , Arnd Bergmann , Christoph Lameter , David Miller , John Stultz , Krzysztof Halasa , Peter Zijlstra , Rodolfo Giometti Subject: Re: [PATCH V7 4/8] posix clocks: hook dynamic clocks into system calls Message-ID: <20101221080037.GB13626@riccoc20.at.omicron.at> References: <6241238a1df55033e50b151ec9d35ba957e43d53.1292512461.git.richard.cochran@omicron.at> <20101217070450.GB2982@riccoc20.at.omicron.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 850 Lines: 27 On Fri, Dec 17, 2010 at 11:03:46AM +0100, Thomas Gleixner wrote: > > Doesn't the same problem exist for the file operations of patch 3? I > think you want the very same protection there unless you want to do > the same magic in your USB driver as well. Yes, you are right. I overlooked that. > So you could do the following: ... > So your fops would call get_fd_clk() and put_fd_clk() and the pc_timer > ones get_posix_clock() and put_posix_clock() or whatever sensible > function names you come up with. > > Thoughts ? It is a good, concrete suggestion. I will try it that way. Thanks, Richard -- 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/