plan 9 kernel history: overview | file list | diff list

1991/1018/port/portdat.h (diff list | history)

1991/1011/sys/src/9/port/portdat.h:7,131991/1018/sys/src/9/port/portdat.h:7,12 (short | long | prev | next)
Remove Envp. Simplify Env. Add QLock Egrp.ev for all of etab. (Bug fix? proper locking)
rsc Fri Mar 4 12:44:25 2005
1991/0428    
typedef struct Dirtab	Dirtab; 
1991/0705    
typedef struct Egrp	Egrp; 
1991/0428    
typedef struct Env	Env; 
typedef struct Envp	Envp; 
typedef struct Envval	Envval; 
typedef struct Etherpkt	Etherpkt; 
1991/0705    
typedef struct Fgrp	Fgrp; 
1991/1011/sys/src/9/port/portdat.h:187,2051991/1018/sys/src/9/port/portdat.h:186,195
1991/0428    
 
struct Env 
{ 
	Lock; 
1991/1018    
	Envval	*name; 
1991/0428    
	Envval	*val; 
	char	name[NAMELEN]; 
1991/0705    
	Env	*next;			/* in chain of Envs for a egrp */ 
1991/0428    
	int	pgref;			/* # pgrps pointing here */ 
}; 
 
struct Envp 
{ 
	Env	*env; 
	int	chref;			/* # chans from pgrp pointing here */ 
}; 
                 
/* 
 *  Ethernet packet buffers. 
 */ 
1991/1011/sys/src/9/port/portdat.h:392,3981991/1018/sys/src/9/port/portdat.h:382,389
1991/0705    
	Ref; 
	Egrp	*next; 
	int	nenv;			/* highest active env table entry, +1 */ 
1991/0428    
	Envp	*etab; 
1991/1018    
	QLock	ev;			/* for all of etab */ 
	Env	*etab; 
1991/0428    
}; 
 
1991/0705    
#define	NFD	100 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)