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
4e379ae6
Commit
4e379ae6
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch viocd
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
8389feb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
drivers/cdrom/viocd.c
drivers/cdrom/viocd.c
+12
-13
No files found.
drivers/cdrom/viocd.c
View file @
4e379ae6
...
...
@@ -151,25 +151,24 @@ static const struct file_operations proc_viocd_operations = {
.
release
=
single_release
,
};
static
int
viocd_blk_open
(
struct
inode
*
inode
,
struct
file
*
fil
e
)
static
int
viocd_blk_open
(
struct
block_device
*
bdev
,
fmode_t
mod
e
)
{
struct
disk_info
*
di
=
inode
->
i_
bdev
->
bd_disk
->
private_data
;
return
cdrom_open
(
&
di
->
viocd_info
,
inode
->
i_bdev
,
file
->
f_
mode
);
struct
disk_info
*
di
=
bdev
->
bd_disk
->
private_data
;
return
cdrom_open
(
&
di
->
viocd_info
,
bdev
,
mode
);
}
static
int
viocd_blk_release
(
struct
inode
*
inode
,
struct
file
*
fil
e
)
static
int
viocd_blk_release
(
struct
gendisk
*
disk
,
fmode_t
mod
e
)
{
struct
disk_info
*
di
=
inode
->
i_bdev
->
bd_
disk
->
private_data
;
cdrom_release
(
&
di
->
viocd_info
,
file
?
file
->
f_mode
:
0
);
struct
disk_info
*
di
=
disk
->
private_data
;
cdrom_release
(
&
di
->
viocd_info
,
mode
);
return
0
;
}
static
int
viocd_blk_ioctl
(
struct
inode
*
inode
,
struct
file
*
fil
e
,
static
int
viocd_blk_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mod
e
,
unsigned
cmd
,
unsigned
long
arg
)
{
struct
disk_info
*
di
=
inode
->
i_bdev
->
bd_disk
->
private_data
;
return
cdrom_ioctl
(
&
di
->
viocd_info
,
inode
->
i_bdev
,
file
?
file
->
f_mode
:
0
,
cmd
,
arg
);
struct
disk_info
*
di
=
bdev
->
bd_disk
->
private_data
;
return
cdrom_ioctl
(
&
di
->
viocd_info
,
bdev
,
mode
,
cmd
,
arg
);
}
static
int
viocd_blk_media_changed
(
struct
gendisk
*
disk
)
...
...
@@ -180,9 +179,9 @@ static int viocd_blk_media_changed(struct gendisk *disk)
struct
block_device_operations
viocd_fops
=
{
.
owner
=
THIS_MODULE
,
.
__
open
=
viocd_blk_open
,
.
__
release
=
viocd_blk_release
,
.
_
_ioctl
=
viocd_blk_ioctl
,
.
open
=
viocd_blk_open
,
.
release
=
viocd_blk_release
,
.
locked
_ioctl
=
viocd_blk_ioctl
,
.
media_changed
=
viocd_blk_media_changed
,
};
...
...
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