Re: Doubt in bottom halves.

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

 



Hello....

> You can create a queue in which when interrupts occurs place your
> data to be consumed in it and then from there you can schedule the
> tasklet or can create thread which will consume the data from the
> queue, so I don;t think you might lose any of the data/interrupt
> processing ... (by the way I havn't tried/used interrupt handlers, so
> I might be wrong) ............

Allow me to elaborate :) OK Vijay, actually which one do you concern 
more:
1. need a precise number of tasklet invocation under certain time 
limitation? For example, on 5 consecutives interrupts, you want the 
same tasklet run 5 times?

OR

2. there are new data coming from a device and it is copied to kernel 
mode pages on RAM (maybe as linked list). Then you trigger the tasklet 
to consume/process this data?

Most likely (I think), you need #2. In that case, you can follow 
Fawaad's advice. Sorry, this is the best idea I can offer for 
now...please study the do_irq() and do_softirq() on 
arch/i386/kernel/irq.c (for kernel 2.4.x) for complete understanding on 
how all these things works. LDD3 is another great resource too..

regards

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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