Messages in this thread | | | From | kuznet@ms2 ... | Subject | Re: IFF_UP vs IFF_RUNNING | Date | Mon, 12 Jul 1999 17:46:21 +0400 (MSK DST) |
| |
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/
| |