Re: [PATCH RFC 1/8] Introduce dynamic clock devices

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Richard Cochran
Date: Saturday, December 4, 2010 - 7:55 am

On Mon, Nov 08, 2010 at 07:38:41AM +0100, Arnd Bergmann wrote:

Arnd, I'm working a revision of this series, and I am not sure I
understand your comment.

The intent here was to allow clock drivers to register a character
device through the clock_device API, since some clocks (hpet, rtc)
already offer a chardev interface.

The same FD from the open character device will also be usable as a
clockid for the generic posix clock_get/settime calls. Thus, the
clock_device layer needs to hook into the file open/release functions.

Are you suggesting that I simply offer all of the functions from a
'struct file_operations' (sans file/inode) in the 'struct
clock_device_operations' too?

I wanted to avoid duplicating the file_operations functions, so that
future changes in those functions would automatically trickle down to
the clock drivers.

Thanks,
Richard



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC 0/8] Dynamic clock devices, Richard Cochran, (Thu Nov 4, 12:26 pm)
[PATCH RFC 1/8] Introduce dynamic clock devices, Richard Cochran, (Thu Nov 4, 12:28 pm)
[PATCH RFC 2/8] clock device: convert clock_gettime, Richard Cochran, (Thu Nov 4, 12:28 pm)
[PATCH RFC 3/8] clock device: convert clock_getres, Richard Cochran, (Thu Nov 4, 12:28 pm)
[PATCH RFC 4/8] clock device: convert clock_settime, Richard Cochran, (Thu Nov 4, 12:29 pm)
[PATCH RFC 5/8] clock device: convert timer_create, Richard Cochran, (Thu Nov 4, 12:29 pm)
[PATCH RFC 6/8] clock device: convert timer_delete, Richard Cochran, (Thu Nov 4, 12:30 pm)
[PATCH RFC 7/8] clock device: convert timer_gettime, Richard Cochran, (Thu Nov 4, 12:30 pm)
[PATCH RFC 8/8] clock device: convert timer_settime, Richard Cochran, (Thu Nov 4, 12:30 pm)
Re: [PATCH RFC 1/8] Introduce dynamic clock devices, Arnd Bergmann, (Sun Nov 7, 11:38 pm)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, Arnd Bergmann, (Sun Nov 7, 11:56 pm)
Re: [PATCH RFC 0/8] Dynamic clock devices, john stultz, (Mon Nov 8, 4:01 pm)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, Richard Cochran, (Tue Nov 9, 1:23 am)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, Richard Cochran, (Tue Nov 9, 3:26 am)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, Arnd Bergmann, (Tue Nov 9, 5:47 am)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, Arnd Bergmann, (Wed Nov 10, 3:16 am)
Re: [PATCH RFC 0/8] Dynamic clock devices, Richard Cochran, (Mon Nov 15, 2:34 am)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, Richard Cochran, (Mon Nov 15, 2:41 am)
Re: [PATCH RFC 0/8] Dynamic clock devices, Paul Mundt, (Mon Nov 15, 3:01 am)
Re: [PATCH RFC 0/8] Dynamic clock devices, Richard Cochran, (Thu Nov 18, 9:33 am)
Re: [PATCH RFC 1/8] Introduce dynamic clock devices, Richard Cochran, (Sat Dec 4, 7:55 am)
Re: [PATCH RFC 1/8] Introduce dynamic clock devices, Arnd Bergmann, (Mon Dec 6, 7:14 am)