# 2.11BSD#431 - /usr/src/sys/net/netisr.h

##### Variables

    netisr            X

##### Macros

    NETISR_CLOCK      X
    NETISR_IMP        X
    NETISR_IP         X
    NETISR_NS         X
    NETISR_RAW        X
    schednetisr       X
    setsoftnet        X

       1: /*
       2:  * Copyright (c) 1980, 1986 Regents of the University of California.
       3:  * All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms are permitted
       6:  * provided that this notice is preserved and that due credit is given
       7:  * to the University of California at Berkeley. The name of the University
       8:  * may not be used to endorse or promote products derived from this
       9:  * software without specific prior written permission. This software
      10:  * is provided ``as is'' without express or implied warranty.
      11:  *
      12:  *	@(#)netisr.h	7.3 (Berkeley) 12/30/87
      13:  */
      14:
      15: /*
      16:  * The networking code runs off software interrupts.
      17:  *
      18:  * You can switch into the network by doing splnet() and return by splx().
      19:  * The software interrupt level for the network is higher than the software
      20:  * level for the clock (so you can enter the network in routines called
      21:  * at timeout time).
      22:  */
      23: #if defined(vax) || defined(tahoe)
      24: #define setsoftnet()    mtpr(SIRR, 12)
      25: #endif
      26: #ifdef pdp11
      27: #define setsoftnet()    { extern int knetisr; mtkd(&knetisr, 1); }
      28: #endif
      29:
      30: /*
      31:  * Each ``pup-level-1'' input queue has a bit in a ``netisr'' status
      32:  * word which is used to de-multiplex a single software
      33:  * interrupt used for scheduling the network code to calls
      34:  * on the lowest level routine of each protocol.
      35:  */
      36: #define NETISR_RAW  0       /* same as AF_UNSPEC */
      37: #define NETISR_IP   2       /* same as AF_INET */
      38: #define NETISR_IMP  3       /* same as AF_IMPLINK */
      39: #define NETISR_NS   6       /* same as AF_NS */
      40: #define NETISR_CLOCK    15      /* protocol timeout */
      41:
      42: #define schednetisr(anisr)  { netisr |= 1<<(anisr); setsoftnet(); }
      43:
      44: #ifdef SUPERVISOR
      45: int netisr;             /* scheduling bits for network */
      46: #endif

#### Defined variables

netisr defined in line 45; used 1 times

- in line 42

#### Defined macros

NETISR_CLOCK defined in line 40; used 1 times

- in /usr/src/sys/pdp/genassym.c line 95

NETISR_IMP defined in line 38; used 2 times

- in /usr/src/sys/netimp/if_imp.c line 347
- in /usr/src/sys/pdp/genassym.c line 91

NETISR_IP defined in line 37; used 12 times

- in /usr/src/sys/net/if_loop.c line 103
- in /usr/src/sys/net/if_sl.c line 511
- in /usr/src/sys/netimp/if_imp.c line 217
- in /usr/src/sys/pdp/genassym.c line 92
- in /usr/src/sys/pdpif/if_de.c line 692
- in /usr/src/sys/pdpif/if_dmc.c line 296
- in /usr/src/sys/pdpif/if_ec.c line 430
- in /usr/src/sys/pdpif/if_en.c line 368
- in /usr/src/sys/pdpif/if_il.c line 503
- in /usr/src/sys/pdpif/if_qe.c line 845
- in /usr/src/sys/pdpif/if_qt.c line 813
- in /usr/src/sys/pdpif/if_vv.c line 689

NETISR_NS defined in line 39; used 7 times

- in /usr/src/sys/net/if_loop.c line 116
- in /usr/src/sys/netns/ns_ip.c line 213
- in /usr/src/sys/pdp/genassym.c line 93
- in /usr/src/sys/pdpif/if_ec.c line 439
- in /usr/src/sys/pdpif/if_il.c line 513
- in /usr/src/sys/pdpif/if_qe.c line 855
- in /usr/src/sys/pdpif/if_qt.c line 822

NETISR_RAW defined in line 36; used 2 times

- in /usr/src/sys/net/raw_usrreq.c line 77
- in /usr/src/sys/pdp/genassym.c line 94

schednetisr defined in line 42; used 19 times

- in /usr/src/sys/net/if_loop.c line 103, 116
- in /usr/src/sys/net/if_sl.c line 511
- in /usr/src/sys/net/raw_usrreq.c line 77
- in /usr/src/sys/netimp/if_imp.c line 217, 347
- in /usr/src/sys/netns/ns_ip.c line 213
- in /usr/src/sys/pdpif/if_de.c line 692
- in /usr/src/sys/pdpif/if_dmc.c line 296
- in /usr/src/sys/pdpif/if_ec.c line 430, 439
- in /usr/src/sys/pdpif/if_en.c line 368
- in /usr/src/sys/pdpif/if_il.c line 503, 513
- in /usr/src/sys/pdpif/if_qe.c line 845, 855
- in /usr/src/sys/pdpif/if_qt.c line 813, 822
- in /usr/src/sys/pdpif/if_vv.c line 689

setsoftnet defined in line 27; used 1 times

- in line 42

#### Usage of this include

netisr.h used 14 times

- in /usr/src/sys/net/if_loop.c line 30
- in /usr/src/sys/net/if_sl.c line 54
- in /usr/src/sys/net/raw_usrreq.c line 25
- in /usr/src/sys/netimp/if_imp.c line 27
- in /usr/src/sys/netns/ns_ip.c line 30
- in /usr/src/sys/pdp/genassym.c line 22
- in /usr/src/sys/pdpif/if_de.h line 9
- in /usr/src/sys/pdpif/if_dmc.c line 40
- in /usr/src/sys/pdpif/if_ec.c line 61
- in /usr/src/sys/pdpif/if_en.c line 27
- in /usr/src/sys/pdpif/if_il.c line 48
- in /usr/src/sys/pdpif/if_qe.c line 125
- in /usr/src/sys/pdpif/if_qt.c line 72
- in /usr/src/sys/pdpif/if_vv.c line 59

Last modified: 1988-04-30 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1187 |