> > > try_cntr = MAX_TRIES;
> > >
> > > do {
> > > try_cntr--;
> > > } while(shm_put_SensorLUT(slut) != 0 || try_cntr ==0);
> >
> > Just a note:
> >
> > In most of the cases this loop runs down immediately unless shm_put_SensorLUT()
> > allows other tasks to run. Therefore it is unprobable that the resource
> > will be freed just while the loop counts down.
> >
> > So it makes almost no difference what is the initial value of try_cntr.
>
> Mmh, ok. This was part of the initializing inside init_module(), that means it
How could I figure it out? ;-)
> isn't realtime yet. But this doesn't make difference concerning your statment
> above. Is there a function inside kernl to sleep for e.g. 10ms ??? Concerning
delay = jiffies + BIG_NUMBER_HERE;
while ((long)(jiffies-delay) < 0);
Gabor
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/