Skip to content
Snippets Groups Projects
Commit 94e5370a authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

remove D_PROT

parent 11b9e3e5
No related branches found
No related tags found
No related merge requests found
......@@ -141,10 +141,7 @@ devfs_lookup(vnode_t dvp, char *name, vnode_t vp)
if (info.flags & D_TTY)
vp->v_flags |= VISTTY;
if (info.flags & D_PROT)
vp->v_flags |= VPROTDEV;
else
vp->v_mode = (mode_t)(S_IRUSR | S_IWUSR);
vp->v_mode = (mode_t)(S_IRUSR | S_IWUSR);
return 0;
}
......
......@@ -50,13 +50,10 @@ struct devinfo {
/*
* Device flags
*
* If D_PROT is set, the device can not be opened via devfs.
*/
#define D_CHR 0x00000001 /* character device */
#define D_BLK 0x00000002 /* block device */
#define D_REM 0x00000004 /* removable device */
#define D_PROT 0x00000008 /* protected device */
#define D_TTY 0x00000010 /* tty device */
typedef int (*devop_open_t) (struct device *, int);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment