Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
9626dd75
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看板
提交
9626dd75
编写于
1月 21, 2009
作者:
W
Wim Van Sebroeck
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[WATCHDOG] cpwd.c & riowd.c - unlocked_ioctl
Switch to unlocked_ioctl Signed-off-by:
N
Wim Van Sebroeck
<
wim@iguana.be
>
上级
8e0ee43b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
18 deletion
+17
-18
drivers/watchdog/cpwd.c
drivers/watchdog/cpwd.c
+10
-10
drivers/watchdog/riowd.c
drivers/watchdog/riowd.c
+7
-8
未找到文件。
drivers/watchdog/cpwd.c
浏览文件 @
9626dd75
...
...
@@ -400,8 +400,7 @@ static int cpwd_release(struct inode *inode, struct file *file)
return
0
;
}
static
int
cpwd_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
)
static
long
cpwd_ioctl
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
static
struct
watchdog_info
info
=
{
.
options
=
WDIOF_SETTIMEOUT
,
...
...
@@ -409,6 +408,7 @@ static int cpwd_ioctl(struct inode *inode, struct file *file,
.
identity
=
DRIVER_NAME
,
};
void
__user
*
argp
=
(
void
__user
*
)
arg
;
struct
inode
*
inode
=
file
->
f_path
.
dentry
->
d_inode
;
int
index
=
iminor
(
inode
)
-
WD0_MINOR
;
struct
cpwd
*
p
=
cpwd_device
;
int
setopt
=
0
;
...
...
@@ -481,7 +481,7 @@ static long cpwd_compat_ioctl(struct file *file, unsigned int cmd,
case
WIOCSTOP
:
case
WIOCGSTAT
:
lock_kernel
();
rval
=
cpwd_ioctl
(
file
->
f_path
.
dentry
->
d_inode
,
file
,
cmd
,
arg
);
rval
=
cpwd_ioctl
(
file
,
cmd
,
arg
);
unlock_kernel
();
break
;
...
...
@@ -515,13 +515,13 @@ static ssize_t cpwd_read(struct file * file, char __user *buffer,
}
static
const
struct
file_operations
cpwd_fops
=
{
.
owner
=
THIS_MODULE
,
.
ioctl
=
cpwd_ioctl
,
.
compat_ioctl
=
cpwd_compat_ioctl
,
.
open
=
cpwd_open
,
.
write
=
cpwd_write
,
.
read
=
cpwd_read
,
.
release
=
cpwd_release
,
.
owner
=
THIS_MODULE
,
.
unlocked_
ioctl
=
cpwd_ioctl
,
.
compat_ioctl
=
cpwd_compat_ioctl
,
.
open
=
cpwd_open
,
.
write
=
cpwd_write
,
.
read
=
cpwd_read
,
.
release
=
cpwd_release
,
};
static
int
__devinit
cpwd_probe
(
struct
of_device
*
op
,
...
...
drivers/watchdog/riowd.c
浏览文件 @
9626dd75
...
...
@@ -86,8 +86,7 @@ static int riowd_release(struct inode *inode, struct file *filp)
return
0
;
}
static
int
riowd_ioctl
(
struct
inode
*
inode
,
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
)
static
long
riowd_ioctl
(
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
static
struct
watchdog_info
info
=
{
.
options
=
WDIOF_SETTIMEOUT
,
...
...
@@ -160,12 +159,12 @@ static ssize_t riowd_write(struct file *file, const char __user *buf, size_t cou
}
static
const
struct
file_operations
riowd_fops
=
{
.
owner
=
THIS_MODULE
,
.
llseek
=
no_llseek
,
.
ioctl
=
riowd_ioctl
,
.
open
=
riowd_open
,
.
write
=
riowd_write
,
.
release
=
riowd_release
,
.
owner
=
THIS_MODULE
,
.
llseek
=
no_llseek
,
.
unlocked_
ioctl
=
riowd_ioctl
,
.
open
=
riowd_open
,
.
write
=
riowd_write
,
.
release
=
riowd_release
,
};
static
struct
miscdevice
riowd_miscdev
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录