Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
47844fad
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看板
提交
47844fad
编写于
3月 02, 2008
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] switch cpqarray
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
ef7822c2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
16 deletion
+16
-16
drivers/block/cpqarray.c
drivers/block/cpqarray.c
+16
-16
未找到文件。
drivers/block/cpqarray.c
浏览文件 @
47844fad
...
@@ -156,9 +156,9 @@ static int sendcmd(
...
@@ -156,9 +156,9 @@ static int sendcmd(
unsigned
int
blkcnt
,
unsigned
int
blkcnt
,
unsigned
int
log_unit
);
unsigned
int
log_unit
);
static
int
ida_open
(
struct
inode
*
inode
,
struct
file
*
filep
);
static
int
ida_open
(
struct
block_device
*
bdev
,
fmode_t
mode
);
static
int
ida_release
(
struct
inode
*
inode
,
struct
file
*
filep
);
static
int
ida_release
(
struct
gendisk
*
disk
,
fmode_t
mode
);
static
int
ida_ioctl
(
struct
inode
*
inode
,
struct
file
*
filep
,
unsigned
int
cmd
,
unsigned
long
arg
);
static
int
ida_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mode
,
unsigned
int
cmd
,
unsigned
long
arg
);
static
int
ida_getgeo
(
struct
block_device
*
bdev
,
struct
hd_geometry
*
geo
);
static
int
ida_getgeo
(
struct
block_device
*
bdev
,
struct
hd_geometry
*
geo
);
static
int
ida_ctlr_ioctl
(
ctlr_info_t
*
h
,
int
dsk
,
ida_ioctl_t
*
io
);
static
int
ida_ctlr_ioctl
(
ctlr_info_t
*
h
,
int
dsk
,
ida_ioctl_t
*
io
);
...
@@ -195,9 +195,9 @@ static inline ctlr_info_t *get_host(struct gendisk *disk)
...
@@ -195,9 +195,9 @@ static inline ctlr_info_t *get_host(struct gendisk *disk)
static
struct
block_device_operations
ida_fops
=
{
static
struct
block_device_operations
ida_fops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
__
open
=
ida_open
,
.
open
=
ida_open
,
.
__
release
=
ida_release
,
.
release
=
ida_release
,
.
__ioctl
=
ida_ioctl
,
.
locked_ioctl
=
ida_ioctl
,
.
getgeo
=
ida_getgeo
,
.
getgeo
=
ida_getgeo
,
.
revalidate_disk
=
ida_revalidate
,
.
revalidate_disk
=
ida_revalidate
,
};
};
...
@@ -818,12 +818,12 @@ DBGINFO(
...
@@ -818,12 +818,12 @@ DBGINFO(
/*
/*
* Open. Make sure the device is really there.
* Open. Make sure the device is really there.
*/
*/
static
int
ida_open
(
struct
inode
*
inode
,
struct
file
*
filep
)
static
int
ida_open
(
struct
block_device
*
bdev
,
fmode_t
mode
)
{
{
drv_info_t
*
drv
=
get_drv
(
inode
->
i_
bdev
->
bd_disk
);
drv_info_t
*
drv
=
get_drv
(
bdev
->
bd_disk
);
ctlr_info_t
*
host
=
get_host
(
inode
->
i_
bdev
->
bd_disk
);
ctlr_info_t
*
host
=
get_host
(
bdev
->
bd_disk
);
DBGINFO
(
printk
(
"ida_open %s
\n
"
,
inode
->
i_
bdev
->
bd_disk
->
disk_name
));
DBGINFO
(
printk
(
"ida_open %s
\n
"
,
bdev
->
bd_disk
->
disk_name
));
/*
/*
* Root is allowed to open raw volume zero even if it's not configured
* Root is allowed to open raw volume zero even if it's not configured
* so array config can still work. I don't think I really like this,
* so array config can still work. I don't think I really like this,
...
@@ -843,9 +843,9 @@ static int ida_open(struct inode *inode, struct file *filep)
...
@@ -843,9 +843,9 @@ static int ida_open(struct inode *inode, struct file *filep)
/*
/*
* Close. Sync first.
* Close. Sync first.
*/
*/
static
int
ida_release
(
struct
inode
*
inode
,
struct
file
*
filep
)
static
int
ida_release
(
struct
gendisk
*
disk
,
fmode_t
mode
)
{
{
ctlr_info_t
*
host
=
get_host
(
inode
->
i_bdev
->
bd_
disk
);
ctlr_info_t
*
host
=
get_host
(
disk
);
host
->
usage_count
--
;
host
->
usage_count
--
;
return
0
;
return
0
;
}
}
...
@@ -1128,10 +1128,10 @@ static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo)
...
@@ -1128,10 +1128,10 @@ static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo)
* ida_ioctl does some miscellaneous stuff like reporting drive geometry,
* ida_ioctl does some miscellaneous stuff like reporting drive geometry,
* setting readahead and submitting commands from userspace to the controller.
* setting readahead and submitting commands from userspace to the controller.
*/
*/
static
int
ida_ioctl
(
struct
inode
*
inode
,
struct
file
*
filep
,
unsigned
int
cmd
,
unsigned
long
arg
)
static
int
ida_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mode
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
{
drv_info_t
*
drv
=
get_drv
(
inode
->
i_
bdev
->
bd_disk
);
drv_info_t
*
drv
=
get_drv
(
bdev
->
bd_disk
);
ctlr_info_t
*
host
=
get_host
(
inode
->
i_
bdev
->
bd_disk
);
ctlr_info_t
*
host
=
get_host
(
bdev
->
bd_disk
);
int
error
;
int
error
;
ida_ioctl_t
__user
*
io
=
(
ida_ioctl_t
__user
*
)
arg
;
ida_ioctl_t
__user
*
io
=
(
ida_ioctl_t
__user
*
)
arg
;
ida_ioctl_t
*
my_io
;
ida_ioctl_t
*
my_io
;
...
@@ -1165,7 +1165,7 @@ static int ida_ioctl(struct inode *inode, struct file *filep, unsigned int cmd,
...
@@ -1165,7 +1165,7 @@ static int ida_ioctl(struct inode *inode, struct file *filep, unsigned int cmd,
put_user
(
host
->
ctlr_sig
,
(
int
__user
*
)
arg
);
put_user
(
host
->
ctlr_sig
,
(
int
__user
*
)
arg
);
return
0
;
return
0
;
case
IDAREVALIDATEVOLS
:
case
IDAREVALIDATEVOLS
:
if
(
iminor
(
inode
)
!=
0
)
if
(
MINOR
(
bdev
->
bd_dev
)
!=
0
)
return
-
ENXIO
;
return
-
ENXIO
;
return
revalidate_allvol
(
host
);
return
revalidate_allvol
(
host
);
case
IDADRIVERVERSION
:
case
IDADRIVERVERSION
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录