Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verlässliche Systemsoftware
projects
osv
Commits
94e5370a
Commit
94e5370a
authored
12 years ago
by
Christoph Hellwig
Browse files
Options
Downloads
Patches
Plain Diff
remove D_PROT
parent
11b9e3e5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fs/devfs/devfs_vnops.c
+1
-4
1 addition, 4 deletions
fs/devfs/devfs_vnops.c
fs/devfs/device.h
+0
-3
0 additions, 3 deletions
fs/devfs/device.h
with
1 addition
and
7 deletions
fs/devfs/devfs_vnops.c
+
1
−
4
View file @
94e5370a
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
fs/devfs/device.h
+
0
−
3
View file @
94e5370a
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment