📄 netisr.h
字号:
/* @(#)netisr.h 4.3 (ULTRIX) 9/4/90 *//************************************************************************ * * * Copyright (c) 1983 by * * Digital Equipment Corporation, Maynard, MA * * All rights reserved. * * * * This software is furnished under a license and may be used and * * copied only in accordance with the terms of such license and * * with the inclusion of the above copyright notice. This * * software or any other copies thereof may not be provided or * * otherwise made available to any other person. No title to and * * ownership of the software is hereby transferred. * * * * This software is derived from software received from the * * University of California, Berkeley, and from Bell * * Laboratories. Use, duplication, or disclosure is subject to * * restrictions under license agreements with University of * * California and with AT&T. * * * * The information in this software is subject to change without * * notice and should not be construed as a commitment by Digital * * Equipment Corporation. * * * * Digital assumes no responsibility for the use or reliability * * of its software on equipment which is not supplied by Digital. * * * ************************************************************************//* * 09-Nov-89 jaw * add atomic acess to netisr for SMP.. * * 15-Jan-88 lp * Added isr define for appletalk *//* netisr.h 6.1 83/07/29 *//* * The networking code runs off software interrupts. * * You can switch into the network by doing splnet() and return by splx(). * The software interrupt level for the network is higher than the software * level for the clock (so you can enter the network in routines called * at timeout time). */#ifdef KERNEL#include "../h/ansi_compat.h"#else#include <ansi_compat.h>#endif#ifdef __vax#define setsoftnet() mtpr(SIRR, 12)#endif/* * Each ``pup-level-1'' input queue has a bit in a ``netisr'' status * word which is used to de-multiplex a single software * interrupt used for scheduling the network code to calls * on the lowest level routine of each protocol. */#define NETISR_RAW 0 /* same as AF_UNSPEC */#define NETISR_IP 2 /* same as AF_INET */#define NETISR_IMP 3 /* same as AF_IMPLINK */#define NETISR_NS 6 /* same as AF_NS */#define NETISR_ND 7 /* network disk protocol */#define NETISR_DDP 9 /* Appletalk */#define NETISR_DN 12 /* same as AF_DECnet */#define NETISR_DLI 13 /* same as AF_DLI */#define NETISR_LAT 14 /* same as AF_LAT */#define NETISR_BSC 15 /* same as AF_BSC */#define NETISR_DLO 19 /* same as AF_OSI */#define schednetisr(anisr) { set_bit_atomic(anisr,&netisr); setsoftnet(); }#ifndef LOCORE#ifdef KERNELint netisr; /* scheduling bits for network */#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -