login
Header Space

 
 

Re: [PATCH 1/7] LinuxPPS core support.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rodolfo Giometti <giometti@...>
Cc: <linux-kernel@...>, <dwmw2@...>, <davej@...>, <sam@...>, <greg@...>, <randy.dunlap@...>
Date: Tuesday, April 1, 2008 - 4:55 am

On Tue, 1 Apr 2008 10:42:14 +0200 Rodolfo Giometti <giometti@enneenne.com> wrote:


This can all be handled with suitable locking and refcounting.  The device
which is delivering PPS interrupts has a reference on the PPS data
structures.  If userspace has PPS open then it also has a reference.

The thread of control which releases the last reference to the PPS data
structures also frees them all up.  This may require a schedule_work() if
we need to support release-from-interrupt (as it appears that we do), but
that's OK - we just need to be able to make the PPS data structures
ineligible for new lookups while the schedule_work() is pending.

There should be no need for any thread of control to wait for any other thread
of control to do anything.  Get the refcounting right and everything
can be done synchronously.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
LinuxPPS (RESUBMIT 2): the PPS Linux implementation., Rodolfo Giometti, (Thu Mar 6, 8:08 am)
Re: LinuxPPS (RESUBMIT 2): the PPS Linux implementation., Andrew Morton, (Wed Mar 19, 5:21 pm)
[PATCH 1/7] LinuxPPS core support., Rodolfo Giometti, (Thu Mar 6, 8:09 am)
Re: [PATCH 1/7] LinuxPPS core support., Andrew Morton, (Fri Mar 28, 6:21 am)
Re: [PATCH 1/7] LinuxPPS core support., Rodolfo Giometti, (Tue Apr 1, 4:59 am)
Re: [PATCH 1/7] LinuxPPS core support., Andrew Morton, (Tue Apr 1, 5:09 am)
Re: [PATCH 1/7] LinuxPPS core support., Rodolfo Giometti, (Tue Apr 1, 5:40 am)
Re: [PATCH 1/7] LinuxPPS core support., Kay Sievers, (Thu Mar 20, 11:50 pm)
Re: [PATCH 1/7] LinuxPPS core support., Rodolfo Giometti, (Tue Mar 25, 6:53 am)
Re: [PATCH 1/7] LinuxPPS core support., Rodolfo Giometti, (Fri Mar 21, 6:57 am)
Re: [PATCH 1/7] LinuxPPS core support., Kay Sievers, (Fri Mar 21, 1:01 pm)
Re: [PATCH 1/7] LinuxPPS core support., Kay Sievers, (Thu Mar 20, 11:36 pm)
Re: [PATCH 1/7] LinuxPPS core support., Rodolfo Giometti, (Fri Mar 21, 6:56 am)
Re: [PATCH 1/7] LinuxPPS core support., Kay Sievers, (Fri Mar 21, 1:00 pm)
Re: [PATCH 1/7] LinuxPPS core support., Rodolfo Giometti, (Tue Mar 25, 6:48 am)
Re: [PATCH 1/7] LinuxPPS core support., Andrew Morton, (Thu Mar 20, 4:03 pm)
Re: [PATCH 1/7] LinuxPPS core support., Rodolfo Giometti, (Tue Mar 25, 10:44 am)
Re: [PATCH 1/7] LinuxPPS core support., Andrew Morton, (Thu Mar 27, 11:25 pm)
Re: [PATCH 1/7] LinuxPPS core support., Rodolfo Giometti, (Tue Apr 1, 4:42 am)
Re: [PATCH 1/7] LinuxPPS core support., Andrew Morton, (Tue Apr 1, 4:55 am)
Re: [PATCH 1/7] LinuxPPS core support., Rodolfo Giometti, (Tue Apr 1, 5:45 pm)
Re: [PATCH 1/7] LinuxPPS core support., Andrew Morton, (Tue Apr 1, 5:57 pm)
Re: [PATCH 1/7] LinuxPPS core support., Rodolfo Giometti, (Tue Apr 1, 5:50 am)
[PATCH 2/7] PPS: userland header file for PPS API., Rodolfo Giometti, (Thu Mar 6, 8:09 am)
[PATCH 3/7] PPS: documentation programs and examples., Rodolfo Giometti, (Thu Mar 6, 8:09 am)
speck-geostationary