what is the function of do_softirq() ?
hi: what is the function of do_softirq()? It is called by ksoftirqd() ,which is setup by : kernel_thread(ksoftirqd, hcpu, CLONE_KERNEL) ; thanks!
On Tue, Jan 15, 2013 at 6:31 AM, horseriver <horserivers@gmail.com> wrote:
hi:
what is the function of do_softirq()?
It is called by ksoftirqd() ,which is setup by : kernel_thread(ksoftirqd, hcpu, CLONE_KERNEL) ;
Please read "Understanding the Linux Kernel" Chapter on Interrupts and Section on Softirqs and tasklets. Page number 171(might be different in other editions) onwards.
thanks!
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Thank you Warm Regards Anuz
On Wed, 2013-01-16 at 10:25 +0000, Anuz Pratap Singh Tomar wrote:
On Tue, Jan 15, 2013 at 6:31 AM, horseriver <horserivers@gmail.com> wrote: hi:
what is the function of do_softirq()?
Softirq is basically same as bottom half except it is run in irq context.So the question which comes to mind is why softirq?Softirqs can run concurrently on several CPUs and that is why it used in networking. There are other advantages also but it is mostly use case dependent.
It is called by ksoftirqd() ,which is setup by : kernel_thread(ksoftirqd, hcpu, CLONE_KERNEL) ;
ksoftirq is a saviour thread which takes up the execution of softirq if it finds out that softirq are executing one by one and thereby userspace is not being scheduled or none of other task is getting executed.As threads have low priority it lets other tasks run.
Please read "Understanding the Linux Kernel" Chapter on Interrupts and Section on Softirqs and tasklets. Page number 171(might be different in other editions) onwards.
thanks!
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Thank you Warm Regards Anuz _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi All, I want to know if we have some documentation of kernel which specifically shows function calls in kernel code (It might be in the form of flow charts). I think we can use tools like doxygen. Is there any work going on this ? Regards Shubham
On Wed, Jan 16, 2013 at 4:35 PM, shubham <kernel.shubham@gmail.com> wrote:
Hi All,
I want to know if we have some documentation of kernel which specifically shows function calls in kernel code (It might be in the form of flow charts).
I think we can use tools like doxygen. Is there any work going on this ?
This may be bit outdated http://www.makelinux.net/kernel_map/
Regards Shubham
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Thank you Warm Regards Anuz
Here is a good one for networking: http://www.linuxfoundation.org/images/1/1c/Network_data_flow_through_kernel.... I believe this is somewhat more up to date. Perhaps the biggest problem is not building a diagram of kernel function calls, but maintaining it over time. On Wed, Jan 16, 2013 at 8:47 AM, Anuz Pratap Singh Tomar < chambilkethakur@gmail.com> wrote:
On Wed, Jan 16, 2013 at 4:35 PM, shubham <kernel.shubham@gmail.com> wrote:
Hi All,
I want to know if we have some documentation of kernel which specifically shows function calls in kernel code (It might be in the form of flow charts).
I think we can use tools like doxygen. Is there any work going on this ?
This may be bit outdated http://www.makelinux.net/kernel_map/
Regards Shubham
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Thank you Warm Regards Anuz
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Henrique Rodrigues http://www.dcc.ufmg.br/~hsr
I think a diagram of function calls would be too much to fit in a reasonable sized diagram. I'm aware of diagrams of network function calls, and they are already big. You can use linux cross referencing (lxr) websites to follow function calls or download lxr and build the same thing for your own source code. I think you can also google diagrams of different kernel subsystems to find useful diagrams. On Wed, Jan 16, 2013 at 8:35 AM, shubham <kernel.shubham@gmail.com> wrote:
Hi All,
I want to know if we have some documentation of kernel which specifically shows function calls in kernel code (It might be in the form of flow charts).
I think we can use tools like doxygen. Is there any work going on this ?
Regards Shubham
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Henrique Rodrigues http://www.dcc.ufmg.br/~hsr
LXR is truly awesome! 8D It clearly obsoletes grep for browsing and searching the kernel sources! Thanks for sharing! Simon On Wed, Jan 16, 2013 at 11:57 AM, Henrique Rodrigues <henriquesilvar@gmail.com> wrote:
I think a diagram of function calls would be too much to fit in a reasonable sized diagram. I'm aware of diagrams of network function calls, and they are already big.
You can use linux cross referencing (lxr) websites to follow function calls or download lxr and build the same thing for your own source code.
I think you can also google diagrams of different kernel subsystems to find useful diagrams.
On Wed, Jan 16, 2013 at 8:35 AM, shubham <kernel.shubham@gmail.com> wrote:
Hi All,
I want to know if we have some documentation of kernel which specifically shows function calls in kernel code (It might be in the form of flow charts).
I think we can use tools like doxygen. Is there any work going on this ?
Regards Shubham
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Henrique Rodrigues http://www.dcc.ufmg.br/~hsr
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (6)
-
anish kumar -
Anuz Pratap Singh Tomar -
Henrique Rodrigues -
horseriver -
shubham -
Simon