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
20389e3d
Commit
20389e3d
authored
Apr 20, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] devfs: s390
parent
2048d61c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
22 deletions
+10
-22
drivers/s390/block/dasd.c
drivers/s390/block/dasd.c
+5
-7
drivers/s390/block/dasd_int.h
drivers/s390/block/dasd_int.h
+0
-1
drivers/s390/char/tubfs.c
drivers/s390/char/tubfs.c
+5
-13
drivers/s390/char/tubio.h
drivers/s390/char/tubio.h
+0
-1
No files found.
drivers/s390/block/dasd.c
View file @
20389e3d
...
...
@@ -168,11 +168,9 @@ dasd_state_new_to_known(struct dasd_device *device)
snprintf
(
buf
,
sizeof
(
buf
),
"dasd/%04x/device"
,
_ccw_device_get_device_number
(
device
->
cdev
));
device
->
devfs_entry
=
devfs_register
(
NULL
,
buf
,
0
,
major
(
kdev
),
minor
(
kdev
)
<<
DASD_PARTN_BITS
,
devfs_perm
,
&
dasd_device_operations
,
NULL
);
devfs_register
(
NULL
,
buf
,
0
,
major
(
kdev
),
minor
(
kdev
)
<<
DASD_PARTN_BITS
,
devfs_perm
,
&
dasd_device_operations
,
NULL
);
device
->
state
=
DASD_STATE_KNOWN
;
return
0
;
}
...
...
@@ -184,8 +182,8 @@ static inline void
dasd_state_known_to_new
(
struct
dasd_device
*
device
)
{
/* Remove device entry and devfs directory. */
devfs_
unregister
(
device
->
devfs_entry
);
devfs_unregister
(
device
->
gdp
->
de
);
devfs_
remove
(
"dasd/%04x/device"
,
_ccw_device_get_device_number
(
device
->
cdev
)
);
/* Forget the discipline information. */
device
->
discipline
=
NULL
;
...
...
drivers/s390/block/dasd_int.h
View file @
20389e3d
...
...
@@ -264,7 +264,6 @@ extern struct dasd_discipline dasd_diag_discipline;
struct
dasd_device
{
/* Block device stuff. */
struct
gendisk
*
gdp
;
devfs_handle_t
devfs_entry
;
request_queue_t
*
request_queue
;
spinlock_t
request_queue_lock
;
unsigned
long
blocks
;
/* size of volume in blocks */
...
...
drivers/s390/char/tubfs.c
View file @
20389e3d
...
...
@@ -34,10 +34,6 @@ static struct file_operations fs3270_fops = {
};
#ifdef CONFIG_DEVFS_FS
static
devfs_handle_t
fs3270_devfs_dir
;
static
devfs_handle_t
fs3270_devfs_tub
;
extern
struct
file_operations
tty_fops
;
void
fs3270_devfs_register
(
tub_t
*
tubp
)
{
char
name
[
16
];
...
...
@@ -48,7 +44,7 @@ void fs3270_devfs_register(tub_t *tubp)
S_IFCHR
|
S_IRUSR
|
S_IWUSR
,
&
fs3270_fops
,
NULL
);
sprintf
(
name
,
"tty%.4x"
,
tubp
->
devno
);
tty_register_devfs_name
(
&
tty3270_driver
,
0
,
tubp
->
minor
,
fs3270_devfs_dir
,
name
);
NULL
,
name
);
}
void
fs3270_devfs_unregister
(
tub_t
*
tubp
)
...
...
@@ -72,13 +68,11 @@ fs3270_init(void)
IBM_FS3270_MAJOR
,
rc
);
return
-
1
;
}
#ifdef CONFIG_DEVFS_FS
fs3270_devfs_dir
=
devfs_mk_dir
(
"3270"
);
fs3270_devfs_tub
=
devfs_register
(
NULL
,
"3270/tub"
,
0
,
devfs_mk_dir
(
"3270"
);
devfs_register
(
NULL
,
"3270/tub"
,
0
,
IBM_FS3270_MAJOR
,
0
,
S_IFCHR
|
S_IRUGO
|
S_IWUGO
,
&
fs3270_fops
,
NULL
);
#endif
fs3270_major
=
IBM_FS3270_MAJOR
;
return
0
;
}
...
...
@@ -90,10 +84,8 @@ void
fs3270_fini
(
void
)
{
if
(
fs3270_major
!=
-
1
)
{
#ifdef CONFIG_DEVFS_FS
devfs_unregister
(
fs3270_devfs_tub
);
devfs_unregister
(
fs3270_devfs_dir
);
#endif
devfs_remove
(
"3270"
);
devfs_remove
(
"3270/tub"
);
unregister_chrdev
(
fs3270_major
,
"fs3270"
);
fs3270_major
=
-
1
;
}
...
...
drivers/s390/char/tubio.h
View file @
20389e3d
...
...
@@ -338,7 +338,6 @@ extern int tty3270_proc_misc;
extern
enum
tubwhat
tty3270_proc_what
;
extern
struct
tty_driver
tty3270_driver
;
#ifdef CONFIG_DEVFS_FS
extern
devfs_handle_t
fs3270_devfs_dir
;
extern
void
fs3270_devfs_register
(
tub_t
*
);
extern
void
fs3270_devfs_unregister
(
tub_t
*
);
#endif
...
...
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