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-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html