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!
Quoted 9 lines · horseriver
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!
Quoted 6 lines
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Signature · 6 lines
Thank you Warm Regards Anuz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130116/ff995f14/attachment.html
Quoted 7 lines · Anuz Pratap Singh Tomar
On Tue, Jan 15, 2013 at 6:31 AM, horseriver <[email protected]> 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.
Quoted 3 lines
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.
Quoted 24 lines
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 at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbiesSignature · 7 lines
Thank you Warm Regards Anuz _______________________________________________ Kernelnewbies mailing list Kernelnewbies at kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Kernel documentation
In reply to horseriverHi 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
Kernel documentation
Quoted 10 lines · shubham
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/
Quoted 8 lines
Regards
Shubham_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Signature · 6 lines
Thank you Warm Regards Anuz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130116/89252e29/attachment.html
Kernel documentation
In reply to shubhamI 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.
Quoted 17 lines · shubham
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 at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Signature · 5 lines
Henrique Rodrigues http://www.dcc.ufmg.br/~hsr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130116/f17e47f5/attachment.html
Kernel documentation
In reply to Anuz Pratap Singh TomarHere is a good one for networking:
http://www.linuxfoundation.org/images/1/1c/Network_data_flow_through_kernel.png
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.
Quoted 38 lines · Anuz Pratap Singh Tomar
Quoted 10 lines · shubham
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/
Quoted 8 lines
Regards
Shubham_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies--
Thank you
Warm Regards
Anuz_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Signature · 5 lines
Henrique Rodrigues http://www.dcc.ufmg.br/~hsr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130116/bc1a1ef9/attachment.html
Kernel documentation
In reply to Henrique RodriguesLXR is truly awesome! 8D
It clearly obsoletes grep for browsing and searching the kernel sources!
Thanks for sharing!
Simon
Quoted 41 lines · Henrique Rodrigues
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.
Quoted 10 lines · shubham
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 ?Quoted 7 lines
Regards
Shubham_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies--
Henrique Rodrigues
http://www.dcc.ufmg.br/~hsr_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies