[lkml]   [2001]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: how do we block interrupts?
On Mon, 12 Nov 2001, Sureshkumar Kamalanathan wrote:

> Hi all,
> I have added a function inside kernel in netif_rx(). I want to block
> all the ethernet interrupts till this function is executed.
> How do we block and unblock the interrupts?
> Thanks in advance,
> Regards,
> Sureshkumar K.

Like line 1002 of ../linux/net/core/dev.c

spin_lock_irqsave(&netdev_fc_lock, flags);
spin_unlock_irqrestore(&netdev_fc_lock, flags);

Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

I was going to compile a list of innovations that could be
attributed to Microsoft. Once I realized that Ctrl-Alt-Del
was handled in the BIOS, I found that there aren't any.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.048 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site