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

1992/0623/port/portdat.h (diff list | history)

1992/0621/sys/src/9/port/portdat.h:6,131992/0623/sys/src/9/port/portdat.h:6,12 (short | long | prev | next)
Rename Env to Evalue. Add length to handle NUL values. Add path for Qid. Use linked list in Egrp instead of array.
Make Netprot linked list, add Netprot.id.
rsc Fri Mar 4 12:44:25 2005
1991/0428    
typedef struct Dev	Dev; 
typedef struct Dirtab	Dirtab; 
1991/0705    
typedef struct Egrp	Egrp; 
1991/0428    
typedef struct Env	Env; 
typedef struct Envval	Envval; 
1992/0623    
typedef struct Evalue	Evalue; 
1991/0428    
typedef struct Etherpkt	Etherpkt; 
1991/0705    
typedef struct Fgrp	Fgrp; 
typedef struct Image	Image; 
1992/0621/sys/src/9/port/portdat.h:192,2031992/0623/sys/src/9/port/portdat.h:191,196
1991/0428    
	long	perm; 
}; 
 
struct Env 
{ 
1991/1018    
	Envval	*name; 
1991/0428    
	Envval	*val; 
}; 
                 
/* 
 *  Ethernet packet buffers. 
 */ 
1992/0621/sys/src/9/port/portdat.h:394,4041992/0623/sys/src/9/port/portdat.h:387,406
1991/0705    
struct Egrp 
{ 
	Ref; 
	int	nenv;			/* highest active env table entry, +1 */ 
1991/1018    
	QLock	ev;			/* for all of etab */ 
	Env	*etab; 
1992/0623    
	QLock; 
	Evalue	*entries; 
	ulong	path; 
1991/0428    
}; 
 
1992/0623    
struct Evalue 
{ 
	char	*name; 
	char	*value; 
	int	len; 
	ulong	path; 
	Evalue	*link; 
}; 
 
1991/0705    
#define	NFD	100 
struct Fgrp 
{ 
1992/0621/sys/src/9/port/portdat.h:651,6561992/0623/sys/src/9/port/portdat.h:653,660
1991/1106    
 */ 
1991/1115    
struct Netprot 
1991/1106    
{ 
1992/0623    
	int	id; 
	Netprot	*next;		/* linked list of protections */ 
1991/1115    
	ulong	mode; 
	char	owner[NAMELEN]; 
}; 
1992/0621/sys/src/9/port/portdat.h:672,6781992/0623/sys/src/9/port/portdat.h:676,682
1991/1106    
	int	(*clone)(Chan*); 
	int	ninfo; 
1991/1115    
	Netinf	info[5]; 
	Netprot	*prot;			/* protections */ 
1992/0623    
	Netprot	*prot;			/* linked list of protections */ 
1991/1106    
}; 
#define MAJOR(q) ((q) >> 8) 
#define MINOR(q) ((q) & 0xff) 


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