lkml.org 
[lkml]   [1999]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: IFF_UP vs IFF_RUNNING
Date
Hello!

> Could you please explain a bit ?

dev->flags is not atomic variable. Now all its changes are
serialized via global lock.

If you change it from interrupt, this change can interrupt
administrative change and you will lose the change on UP (harmless),
or even corrupt flags on SMP.

> What is your
> suggestion on how to handle the problem of getting the state of a link
> protocol from outside of the link protocol driver ?

New variable dev->link_state, which should be atomic or
at least modified under some interrupt(or only BH) safe lock.

Alexey

-
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.tux.org/lkml/

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