[LinuxPPS] Suggestions needed
Rodolfo Giometti
giometti at enneenne.com
Tue Apr 1 16:02:31 CEST 2008
On Tue, Apr 01, 2008 at 03:58:59PM +0200, Udo van den Heuvel wrote:
> Rodolfo Giometti wrote:
> > here a letter from Andrew Morton (kernel guru) where he asks to me to
> > modify the PPS register/unregister procedure.
> >
> > Can someone suggest a good solution as Andrew asks for? :)
>
> Yes.
> Add a flag to a struct of somesuch (which struct needs to be modified).
> On entry of procedure set the flag if unset.
> If already set: fail
> modify data in struct, whatever
> Clear flag.
>
> This means that the struct can only be modified by one instance only. (?!)
I'm sorry but I don't understand you. Can you please provide and
axample? :)
Thanks,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti at enneenne.com
Linux Device Driver giometti at gnudd.com
Embedded Systems giometti at linux.it
UNIX programming phone: +39 349 2432127
More information about the LinuxPPS
mailing list