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

How to find out which softirq I am running in.



Hi, 
I noticed that there are four/five softirq's defined in
kernel/softirq.c, How can I know which softirq am I called from, if at
all I am called from a softirq. I tried using in_softirq, but that
gives me the current->preempt_count, which is something like 256 or
1024. Where I just want to know of the NET_TX_SOFTIRQ, TIMER_SOFTIRQ,
NET_RX_SOFTIRQ, which one am I called from.
Thanks in advance.
-- 
Regards,
Devesh Agrawal

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/