Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f03bb371
Commit
f03bb371
authored
Aug 06, 2002
by
Richard Gooch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base.c:
Exported devfs_only()
parent
50dd6119
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
fs/devfs/base.c
fs/devfs/base.c
+4
-5
include/linux/devfs_fs_kernel.h
include/linux/devfs_fs_kernel.h
+0
-2
No files found.
fs/devfs/base.c
View file @
f03bb371
...
...
@@ -2228,16 +2228,14 @@ const char *devfs_get_name (devfs_handle_t de, unsigned int *namelen)
/**
* devfs_only - returns if "devfs=only" is a boot option
* devfs_only - returns
true
if "devfs=only" is a boot option
*
* If "devfs=only" this function will return 1, otherwise 0 is returned.
*/
int
devfs_only
(
void
)
{
if
(
boot_options
&
OPTION_ONLY
)
return
1
;
return
0
;
}
return
(
boot_options
&
OPTION_ONLY
)
?
1
:
0
;
}
/* End Function devfs_only */
/**
...
...
@@ -2328,6 +2326,7 @@ EXPORT_SYMBOL(devfs_get_next_sibling);
EXPORT_SYMBOL
(
devfs_auto_unregister
);
EXPORT_SYMBOL
(
devfs_get_unregister_slave
);
EXPORT_SYMBOL
(
devfs_get_name
);
EXPORT_SYMBOL
(
devfs_only
);
/**
...
...
include/linux/devfs_fs_kernel.h
View file @
f03bb371
...
...
@@ -95,7 +95,6 @@ extern void devfs_auto_unregister (devfs_handle_t master,devfs_handle_t slave);
extern
devfs_handle_t
devfs_get_unregister_slave
(
devfs_handle_t
master
);
extern
const
char
*
devfs_get_name
(
devfs_handle_t
de
,
unsigned
int
*
namelen
);
extern
int
devfs_only
(
void
);
extern
void
devfs_register_tape
(
devfs_handle_t
de
);
extern
void
devfs_register_series
(
devfs_handle_t
dir
,
const
char
*
format
,
unsigned
int
num_entries
,
...
...
@@ -238,7 +237,6 @@ static inline int devfs_only (void)
{
return
0
;
}
static
inline
void
devfs_register_tape
(
devfs_handle_t
de
)
{
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment