New DMAP_BABY flag in <minix/dmap.h> and to be printed by IS in dmap dump.

This commit is contained in:
Ben Gras 2005-10-20 19:40:44 +00:00
parent b5e3e6d18c
commit f6bdd6a4a9
2 changed files with 4 additions and 2 deletions

View file

@ -15,6 +15,7 @@
*/
#define DMAP_MUTABLE 0x01 /* mapping can be overtaken */
#define DMAP_BUSY 0x02 /* driver busy with request */
#define DMAP_BABY 0x04 /* driver exec() not done yet */
enum dev_style { STYLE_DEV, STYLE_NDEV, STYLE_TTY, STYLE_CLONE };

View file

@ -54,9 +54,10 @@ PUBLIC void fproc_dmp()
PRIVATE char * dmap_flags(int flags)
{
static char fl[10];
fl[0] = '-';
strcpy(fl, "---");
if(flags & DMAP_MUTABLE) fl[0] = 'M';
fl[1] = '\0';
if(flags & DMAP_BUSY) fl[1] = 'S';
if(flags & DMAP_BABY) fl[2] = 'B';
return fl;
}