Re: Please suggest a way to synchronize tasklets.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You forgot to cc kernelnewbies as well..

On Sun, Nov 9, 2008 at 2:06 AM, StephanT <stman937-linewbie@xxxxxxxxx> wrote:
>
>>how about this: each tasklet atomically test and increase an atomic
>>counter. once it reach certain number that marks the total tasklet
>>spawned, then you know it's the time to unmask the interrupt.
>>
>>make sense?
>>
>> Lots !  :o)
>
> What specific function do I have to use?

define the counter as atomic_t and use functions like atomic_inc() to access it.

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux