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
nexedi
linux
Commits
7b66a268
Commit
7b66a268
authored
Dec 03, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Dec 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] removal of devfs_register_series
not used anymore
parent
2279d7d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
52 deletions
+0
-52
fs/devfs/util.c
fs/devfs/util.c
+0
-36
include/linux/devfs_fs_kernel.h
include/linux/devfs_fs_kernel.h
+0
-16
No files found.
fs/devfs/util.c
View file @
7b66a268
...
...
@@ -105,42 +105,6 @@ void devfs_unregister_tape(int num)
EXPORT_SYMBOL
(
devfs_unregister_tape
);
/**
* devfs_register_series - Register a sequence of device entries.
* @dir: The handle to the parent devfs directory entry. If this is %NULL
* the new names are relative to the root of the devfs.
* @format: The printf-style format string. A single "\%u" is allowed.
* @num_entries: The number of entries to register.
* @flags: A set of bitwise-ORed flags (DEVFS_FL_*).
* @major: The major number. Not needed for regular files.
* @minor_start: The starting minor number. Not needed for regular files.
* @mode: The default file mode.
* @ops: The &file_operations or &block_device_operations structure.
* This must not be externally deallocated.
* @info: An arbitrary pointer which will be written to the private_data
* field of the &file structure passed to the device driver. You
* can set this to whatever you like, and change it once the file
* is opened (the next file opened will not see this change).
*/
void
devfs_register_series
(
devfs_handle_t
dir
,
const
char
*
format
,
unsigned
int
num_entries
,
unsigned
int
flags
,
unsigned
int
major
,
unsigned
int
minor_start
,
umode_t
mode
,
void
*
ops
,
void
*
info
)
{
unsigned
int
count
;
char
devname
[
128
];
for
(
count
=
0
;
count
<
num_entries
;
++
count
)
{
sprintf
(
devname
,
format
,
count
);
devfs_register
(
dir
,
devname
,
flags
,
major
,
minor_start
+
count
,
mode
,
ops
,
info
);
}
}
/* End Function devfs_register_series */
EXPORT_SYMBOL
(
devfs_register_series
);
struct
major_list
{
spinlock_t
lock
;
...
...
include/linux/devfs_fs_kernel.h
View file @
7b66a268
...
...
@@ -67,11 +67,6 @@ extern const char *devfs_get_name (devfs_handle_t de, unsigned int *namelen);
extern
int
devfs_only
(
void
);
extern
int
devfs_register_tape
(
devfs_handle_t
de
);
extern
void
devfs_unregister_tape
(
int
num
);
extern
void
devfs_register_series
(
devfs_handle_t
dir
,
const
char
*
format
,
unsigned
int
num_entries
,
unsigned
int
flags
,
unsigned
int
major
,
unsigned
int
minor_start
,
umode_t
mode
,
void
*
ops
,
void
*
info
);
extern
int
devfs_alloc_major
(
char
type
);
extern
void
devfs_dealloc_major
(
char
type
,
int
major
);
extern
dev_t
devfs_alloc_devnum
(
char
type
);
...
...
@@ -178,17 +173,6 @@ static inline int devfs_register_tape (devfs_handle_t de)
static
inline
void
devfs_unregister_tape
(
int
num
)
{
}
static
inline
void
devfs_register_series
(
devfs_handle_t
dir
,
const
char
*
format
,
unsigned
int
num_entries
,
unsigned
int
flags
,
unsigned
int
major
,
unsigned
int
minor_start
,
umode_t
mode
,
void
*
ops
,
void
*
info
)
{
return
;
}
static
inline
int
devfs_alloc_major
(
char
type
)
{
return
-
1
;
...
...
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