⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 etherif.h

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻 H
字号:
typedef struct Ether Ether;struct Ether {	ISAConf;			/* hardware info */	int	ctlrno;	char	iname[NAMELEN];	char	oname[NAMELEN];	int	tbdf;			/* type+busno+devno+funcno */	int	mbps;			/* Mbps */	uchar	ea[Easize];	void	(*attach)(Ether*);	/* filled in by reset routine */	void	(*transmit)(Ether*);	void	(*interrupt)(Ureg*, void*);	void	*ctlr;	Ifc	ifc;	Lock	rqlock;	Msgbuf*	rqhead;	Msgbuf*	rqtail;	Rendez	rqr;	Lock	tqlock;	Msgbuf*	tqhead;	Msgbuf*	tqtail;	Rendez	tqr;};#define NEXT(x, l)	(((x)+1)%(l))#define PREV(x, l)	(((x) == 0) ? (l)-1: (x)-1)#define	HOWMANY(x, y)	(((x)+((y)-1))/(y))#define ROUNDUP(x, y)	(HOWMANY((x), (y))*(y))extern void etheriq(Ether*, Msgbuf*);extern Msgbuf* etheroq(Ether*);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -