Correction: mem.c devices are "D_MEM" (and D_MEM is added.)

Taken issue with by:	phk
This commit is contained in:
green 1999-09-12 18:48:07 +00:00
parent 8e94c274cd
commit 347920f6fb
5 changed files with 13 additions and 11 deletions

View File

@ -95,7 +95,7 @@ static struct cdevsw mem_cdevsw = {
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* flags */ D_MEM,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -95,7 +95,7 @@ static struct cdevsw mem_cdevsw = {
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* flags */ D_MEM,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -95,7 +95,7 @@ static struct cdevsw mem_cdevsw = {
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_DISK,
/* flags */ D_MEM,
/* maxio */ 0,
/* bmaj */ -1
};

View File

@ -143,11 +143,12 @@ typedef void devfs_remove_t __P((dev_t dev));
*/
#define BUF_STRATEGY(bp, dummy) (*devsw((bp)->b_dev)->d_strategy)(bp)
/*
* Types for d_type.
* Types for d_flags.
*/
#define D_TAPE 1
#define D_DISK 2
#define D_TTY 4
#define D_TAPE 0x0001
#define D_DISK 0x0002
#define D_TTY 0x0004
#define D_MEM 0x0008
#define D_TYPEMASK 0xffff

View File

@ -143,11 +143,12 @@ typedef void devfs_remove_t __P((dev_t dev));
*/
#define BUF_STRATEGY(bp, dummy) (*devsw((bp)->b_dev)->d_strategy)(bp)
/*
* Types for d_type.
* Types for d_flags.
*/
#define D_TAPE 1
#define D_DISK 2
#define D_TTY 4
#define D_TAPE 0x0001
#define D_DISK 0x0002
#define D_TTY 0x0004
#define D_MEM 0x0008
#define D_TYPEMASK 0xffff