lkml.org 
[lkml]   [1998]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Very simple question ...
On Thu, 27 Aug 1998, Anton Ghiugan wrote:

> Sorry about this insistence, but I need to know:
>
>
> Can a bottom half like NET_BH be interrupted by a kernel timer ? (Yes/No)
[X]

Hi Anton,

In opening comments from kernel/softirq.c, Linus says...

/*
* linux/kernel/softirq.c
*
* Copyright (C) 1992 Linus Torvalds
*
* do_bottom_half() runs at normal kernel priority: all interrupts
* enabled. do_bottom_half() is atomic with respect to itself: a
* bottom_half handler need not be re-entrant.
*/

and further down...

asmlinkage void do_bottom_half(void)
{
int cpu = smp_processor_id();

if (softirq_trylock(cpu)) {
if (hardirq_trylock(cpu)) {
__sti(); <== he says it again
run_bottom_halves();


If I'm reading that wrong, I'm sure someone will correct me :)

Cheers,

-Mike


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

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