Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
badf8082
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
badf8082
编写于
10月 16, 2008
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] switch ide_disk_ops ->ioctl() to sane prototype
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
83ff6fe8
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
13 addition
and
15 deletion
+13
-15
drivers/ide/ide-disk.h
drivers/ide/ide-disk.h
+1
-1
drivers/ide/ide-disk_ioctl.c
drivers/ide/ide-disk_ioctl.c
+1
-2
drivers/ide/ide-floppy.h
drivers/ide/ide-floppy.h
+2
-2
drivers/ide/ide-floppy_ioctl.c
drivers/ide/ide-floppy_ioctl.c
+6
-7
drivers/ide/ide-gd.c
drivers/ide/ide-gd.c
+1
-1
include/linux/ide.h
include/linux/ide.h
+2
-2
未找到文件。
drivers/ide/ide-disk.h
浏览文件 @
badf8082
...
...
@@ -13,7 +13,7 @@ ide_decl_devset(wcache);
ide_decl_devset
(
acoustic
);
/* ide-disk_ioctl.c */
int
ide_disk_ioctl
(
ide_drive_t
*
,
struct
inode
*
,
struct
file
*
,
unsigned
int
,
int
ide_disk_ioctl
(
ide_drive_t
*
,
struct
block_device
*
,
fmode_t
,
unsigned
int
,
unsigned
long
);
#ifdef CONFIG_IDE_PROC_FS
...
...
drivers/ide/ide-disk_ioctl.c
浏览文件 @
badf8082
...
...
@@ -13,10 +13,9 @@ static const struct ide_ioctl_devset ide_disk_ioctl_settings[] = {
{
0
}
};
int
ide_disk_ioctl
(
ide_drive_t
*
drive
,
struct
inode
*
inode
,
struct
file
*
fil
e
,
int
ide_disk_ioctl
(
ide_drive_t
*
drive
,
struct
block_device
*
bdev
,
fmode_t
mod
e
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
block_device
*
bdev
=
inode
->
i_bdev
;
int
err
;
err
=
ide_setting_ioctl
(
drive
,
bdev
,
cmd
,
arg
,
ide_disk_ioctl_settings
);
...
...
drivers/ide/ide-floppy.h
浏览文件 @
badf8082
...
...
@@ -23,8 +23,8 @@ void ide_floppy_create_mode_sense_cmd(struct ide_atapi_pc *, u8);
void
ide_floppy_create_read_capacity_cmd
(
struct
ide_atapi_pc
*
);
/* ide-floppy_ioctl.c */
int
ide_floppy_ioctl
(
ide_drive_t
*
,
struct
inode
*
,
struct
file
*
,
unsigned
in
t
,
unsigned
long
);
int
ide_floppy_ioctl
(
ide_drive_t
*
,
struct
block_device
*
,
fmode_
t
,
unsigned
int
,
unsigned
long
);
#ifdef CONFIG_IDE_PROC_FS
/* ide-floppy_proc.c */
...
...
drivers/ide/ide-floppy_ioctl.c
浏览文件 @
badf8082
...
...
@@ -241,7 +241,7 @@ static int ide_floppy_lockdoor(ide_drive_t *drive, struct ide_atapi_pc *pc,
return
0
;
}
static
int
ide_floppy_format_ioctl
(
ide_drive_t
*
drive
,
struct
file
*
fil
e
,
static
int
ide_floppy_format_ioctl
(
ide_drive_t
*
drive
,
fmode_t
mod
e
,
unsigned
int
cmd
,
void
__user
*
argp
)
{
switch
(
cmd
)
{
...
...
@@ -250,7 +250,7 @@ static int ide_floppy_format_ioctl(ide_drive_t *drive, struct file *file,
case
IDEFLOPPY_IOCTL_FORMAT_GET_CAPACITY
:
return
ide_floppy_get_format_capacities
(
drive
,
argp
);
case
IDEFLOPPY_IOCTL_FORMAT_START
:
if
(
!
(
file
->
f_
mode
&
FMODE_WRITE
))
if
(
!
(
mode
&
FMODE_WRITE
))
return
-
EPERM
;
return
ide_floppy_format_unit
(
drive
,
(
int
__user
*
)
argp
);
case
IDEFLOPPY_IOCTL_FORMAT_GET_PROGRESS
:
...
...
@@ -260,10 +260,9 @@ static int ide_floppy_format_ioctl(ide_drive_t *drive, struct file *file,
}
}
int
ide_floppy_ioctl
(
ide_drive_t
*
drive
,
struct
inode
*
inode
,
struct
file
*
fil
e
,
unsigned
int
cmd
,
unsigned
long
arg
)
int
ide_floppy_ioctl
(
ide_drive_t
*
drive
,
struct
block_device
*
bdev
,
fmode_t
mod
e
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
block_device
*
bdev
=
inode
->
i_bdev
;
struct
ide_atapi_pc
pc
;
void
__user
*
argp
=
(
void
__user
*
)
arg
;
int
err
;
...
...
@@ -271,7 +270,7 @@ int ide_floppy_ioctl(ide_drive_t *drive, struct inode *inode,
if
(
cmd
==
CDROMEJECT
||
cmd
==
CDROM_LOCKDOOR
)
return
ide_floppy_lockdoor
(
drive
,
&
pc
,
arg
,
cmd
);
err
=
ide_floppy_format_ioctl
(
drive
,
fil
e
,
cmd
,
argp
);
err
=
ide_floppy_format_ioctl
(
drive
,
mod
e
,
cmd
,
argp
);
if
(
err
!=
-
ENOTTY
)
return
err
;
...
...
@@ -281,7 +280,7 @@ int ide_floppy_ioctl(ide_drive_t *drive, struct inode *inode,
*/
if
(
cmd
!=
CDROM_SEND_PACKET
&&
cmd
!=
SCSI_IOCTL_SEND_COMMAND
)
err
=
scsi_cmd_ioctl
(
bdev
->
bd_disk
->
queue
,
bdev
->
bd_disk
,
file
?
file
->
f_mode
:
0
,
cmd
,
argp
);
mode
,
cmd
,
argp
);
if
(
err
==
-
ENOTTY
)
err
=
generic_ide_ioctl
(
drive
,
bdev
,
cmd
,
arg
);
...
...
drivers/ide/ide-gd.c
浏览文件 @
badf8082
...
...
@@ -293,7 +293,7 @@ static int ide_gd_ioctl(struct inode *inode, struct file *file,
struct
ide_disk_obj
*
idkp
=
ide_drv_g
(
bdev
->
bd_disk
,
ide_disk_obj
);
ide_drive_t
*
drive
=
idkp
->
drive
;
return
drive
->
disk_ops
->
ioctl
(
drive
,
inode
,
file
,
cmd
,
arg
);
return
drive
->
disk_ops
->
ioctl
(
drive
,
bdev
,
file
?
file
->
f_mode
:
0
,
cmd
,
arg
);
}
static
struct
block_device_operations
ide_gd_ops
=
{
...
...
include/linux/ide.h
浏览文件 @
badf8082
...
...
@@ -474,8 +474,8 @@ struct ide_disk_ops {
ide_startstop_t
(
*
do_request
)(
struct
ide_drive_s
*
,
struct
request
*
,
sector_t
);
int
(
*
end_request
)(
struct
ide_drive_s
*
,
int
,
int
);
int
(
*
ioctl
)(
struct
ide_drive_s
*
,
struct
inod
e
*
,
struct
file
*
,
unsigned
int
,
unsigned
long
);
int
(
*
ioctl
)(
struct
ide_drive_s
*
,
struct
block_devic
e
*
,
fmode_t
,
unsigned
int
,
unsigned
long
);
};
/* ATAPI device flags */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录