| plan 9 kernel history: overview | file list | diff list |
1995/0822/pc/devether.c (diff list | history)
| 1995/0801/sys/src/9/pc/devether.c:88,96 – 1995/0822/sys/src/9/pc/devether.c:88,95 (short | long | prev | next) | ||
| 1995/0108 | } | |
| 1992/0424 | void | |
| 1995/0822 | etherremove(Chan*) | |
| 1992/0424 | { | |
| 1992/0711 |
| |
| 1992/0424 | } void | |
| 1995/0801/sys/src/9/pc/devether.c:145,151 – 1995/0822/sys/src/9/pc/devether.c:144,150 | ||
| 1995/0721 | int s, different; | |
| 1993/1120 | ||
| 1995/0721 | different = memcmp(pkt->d, ctlr->ea, sizeof(pkt->d)); | |
| 1995/0731 |
| |
| 1995/0822 | if(different && memcmp(pkt->d, ctlr->bcast, sizeof(pkt->d))) | |
| 1993/1120 | return 0; s = splhi(); | |
| 1995/0801/sys/src/9/pc/devether.c:156,166 – 1995/0822/sys/src/9/pc/devether.c:155,164 | ||
| 1993/1120 | } | |
| 1993/1113 | long | |
| 1995/0822 | etherwrite(Chan *c, void *buf, long n, ulong) | |
| 1992/0407 | { | |
| 1993/1113 | Ether *ctlr; | |
| 1992/0407 | ||
| 1993/1113 |
| |
| 1995/0801/sys/src/9/pc/devether.c:177,184 – 1995/0822/sys/src/9/pc/devether.c:175,182 | ||
| 1992/0403 | nexterror(); } | |
| 1993/1113 | n = (*ctlr->write)(ctlr, buf, n); | |
| 1992/0403 |
| |
| 1993/1113 | qunlock(&ctlr->tlock); | |
| 1995/0822 | poperror(); | |
| 1992/0403 | ||
| 1993/1113 | return n; | |
| 1995/0108 | } | |