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

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

1992/0305/sys/src/9/port/portdat.h:36,441992/0307/sys/src/9/port/portdat.h:36,43 (short | long | prev | next)
Format edit.
rsc Fri Mar 4 12:44:25 2005
1991/0705    
typedef struct Segment	Segment; 
1991/0428    
typedef struct Stream	Stream; 
1991/0926    
typedef struct Waitq	Waitq; 
1992/0307    
typedef int    Devgen(Chan*, Dirtab*, int, int, Dir*); 
1991/0428    
 
typedef int Devgen(Chan*, Dirtab*, int, int, Dir*); 
                 
struct List 
{ 
	void	*next; 
1992/0305/sys/src/9/port/portdat.h:240,2451992/0307/sys/src/9/port/portdat.h:239,245
1991/0810    
	}; 
1991/0607    
	void	*ptr; 
}; 
1992/0307    
 
1991/0607    
struct KIOQ 
{ 
	QLock; 
1992/0305/sys/src/9/port/portdat.h:248,2531992/0307/sys/src/9/port/portdat.h:248,254
1991/0607    
	int	c; 
	int	count; 
}; 
1992/0307    
 
1991/0607    
extern IOQ	lineq; 
extern IOQ	printq; 
extern IOQ	mouseq; 
1992/0305/sys/src/9/port/portdat.h:268,2741992/0307/sys/src/9/port/portdat.h:269,276
1991/1011    
	Mhead	*hash;			/* Hash chain */ 
1991/0428    
}; 
 
enum{ 
1992/0307    
enum 
{ 
1991/0428    
	NUser,				/* note provided externally */ 
1991/1105    
	NExit,				/* deliver note quietly */ 
	NDebug,				/* print debug message */ 
1992/0305/sys/src/9/port/portdat.h:337,3491992/0307/sys/src/9/port/portdat.h:339,353
1991/0428    
}; 
 
1991/0705    
/* Segment types */ 
#define SG_TYPE		007		/* Mask type of segment */ 
#define SG_TEXT		000 
#define SG_DATA		001 
#define SG_BSS		002 
#define SG_STACK	003 
#define SG_SHARED	004 
#define SG_PHYSICAL	005 
1992/0307    
#define SG_TYPE		07		/* Mask type of segment */ 
#define SG_TEXT		00 
#define SG_DATA		01 
#define SG_BSS		02 
#define SG_STACK	03 
#define SG_SHARED	04 
#define SG_PHYSICAL	05 
#define SG_SHDATA	06 
 
1991/0705    
/* Segment flags */ 
1992/0303    
#define SG_RONLY	040			/* Segment is read only */ 
1991/0705    
 
1992/0305/sys/src/9/port/portdat.h:648,6581992/0307/sys/src/9/port/portdat.h:652,664
1991/1115    
	ulong	mode; 
	char	owner[NAMELEN]; 
}; 
1992/0307    
 
1991/1115    
struct Netinf 
{ 
1991/1106    
	char	*name; 
	void	(*fill)(Chan*, char*, int); 
}; 
1992/0307    
 
1991/1106    
struct Network 
{ 
1991/1115    
	Lock; 


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