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

Re: How to find out which softirq I am running in.



On Tuesday 01 March 2005 03:02 pm, Devesh Agrawal wrote:
> 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.

I think that you can't. But why would you like to know? Surely your goal can 
be accomplished in other ways...

tavi

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