Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
d003e982
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
d003e982
编写于
6月 04, 2012
作者:
R
Richard Weinberger
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
um: remove line_ioctl()
line_ioctl() has no real function. Signed-off-by:
N
Richard Weinberger
<
richard@nod.at
>
上级
6fc58845
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
0 addition
and
90 deletion
+0
-90
arch/um/drivers/line.c
arch/um/drivers/line.c
+0
-86
arch/um/drivers/line.h
arch/um/drivers/line.h
+0
-2
arch/um/drivers/ssl.c
arch/um/drivers/ssl.c
+0
-1
arch/um/drivers/stdio_console.c
arch/um/drivers/stdio_console.c
+0
-1
未找到文件。
arch/um/drivers/line.c
浏览文件 @
d003e982
...
...
@@ -221,92 +221,6 @@ void line_set_termios(struct tty_struct *tty, struct ktermios * old)
/* nothing */
}
static
const
struct
{
int
cmd
;
char
*
level
;
char
*
name
;
}
tty_ioctls
[]
=
{
/* don't print these, they flood the log ... */
{
TCGETS
,
NULL
,
"TCGETS"
},
{
TCSETS
,
NULL
,
"TCSETS"
},
{
TCSETSW
,
NULL
,
"TCSETSW"
},
{
TCFLSH
,
NULL
,
"TCFLSH"
},
{
TCSBRK
,
NULL
,
"TCSBRK"
},
/* general tty stuff */
{
TCSETSF
,
KERN_DEBUG
,
"TCSETSF"
},
{
TCGETA
,
KERN_DEBUG
,
"TCGETA"
},
{
TIOCMGET
,
KERN_DEBUG
,
"TIOCMGET"
},
{
TCSBRKP
,
KERN_DEBUG
,
"TCSBRKP"
},
{
TIOCMSET
,
KERN_DEBUG
,
"TIOCMSET"
},
/* linux-specific ones */
{
TIOCLINUX
,
KERN_INFO
,
"TIOCLINUX"
},
{
KDGKBMODE
,
KERN_INFO
,
"KDGKBMODE"
},
{
KDGKBTYPE
,
KERN_INFO
,
"KDGKBTYPE"
},
{
KDSIGACCEPT
,
KERN_INFO
,
"KDSIGACCEPT"
},
};
int
line_ioctl
(
struct
tty_struct
*
tty
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
int
ret
;
int
i
;
ret
=
0
;
switch
(
cmd
)
{
#ifdef TIOCGETP
case
TIOCGETP
:
case
TIOCSETP
:
case
TIOCSETN
:
#endif
#ifdef TIOCGETC
case
TIOCGETC
:
case
TIOCSETC
:
#endif
#ifdef TIOCGLTC
case
TIOCGLTC
:
case
TIOCSLTC
:
#endif
/* Note: these are out of date as we now have TCGETS2 etc but this
whole lot should probably go away */
case
TCGETS
:
case
TCSETSF
:
case
TCSETSW
:
case
TCSETS
:
case
TCGETA
:
case
TCSETAF
:
case
TCSETAW
:
case
TCSETA
:
case
TCXONC
:
case
TCFLSH
:
case
TIOCOUTQ
:
case
TIOCINQ
:
case
TIOCGLCKTRMIOS
:
case
TIOCSLCKTRMIOS
:
case
TIOCPKT
:
case
TIOCGSOFTCAR
:
case
TIOCSSOFTCAR
:
return
-
ENOIOCTLCMD
;
#if 0
case TCwhatever:
/* do something */
break;
#endif
default:
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tty_ioctls
);
i
++
)
if
(
cmd
==
tty_ioctls
[
i
].
cmd
)
break
;
if
(
i
==
ARRAY_SIZE
(
tty_ioctls
))
{
printk
(
KERN_ERR
"%s: %s: unknown ioctl: 0x%x
\n
"
,
__func__
,
tty
->
name
,
cmd
);
}
ret
=
-
ENOIOCTLCMD
;
break
;
}
return
ret
;
}
void
line_throttle
(
struct
tty_struct
*
tty
)
{
struct
line
*
line
=
tty
->
driver_data
;
...
...
arch/um/drivers/line.h
浏览文件 @
d003e982
...
...
@@ -69,8 +69,6 @@ extern int line_chars_in_buffer(struct tty_struct *tty);
extern
void
line_flush_buffer
(
struct
tty_struct
*
tty
);
extern
void
line_flush_chars
(
struct
tty_struct
*
tty
);
extern
int
line_write_room
(
struct
tty_struct
*
tty
);
extern
int
line_ioctl
(
struct
tty_struct
*
tty
,
unsigned
int
cmd
,
unsigned
long
arg
);
extern
void
line_throttle
(
struct
tty_struct
*
tty
);
extern
void
line_unthrottle
(
struct
tty_struct
*
tty
);
...
...
arch/um/drivers/ssl.c
浏览文件 @
d003e982
...
...
@@ -129,7 +129,6 @@ static const struct tty_operations ssl_ops = {
.
flush_buffer
=
line_flush_buffer
,
.
flush_chars
=
line_flush_chars
,
.
set_termios
=
line_set_termios
,
.
ioctl
=
line_ioctl
,
.
throttle
=
line_throttle
,
.
unthrottle
=
line_unthrottle
,
#if 0
...
...
arch/um/drivers/stdio_console.c
浏览文件 @
d003e982
...
...
@@ -112,7 +112,6 @@ static const struct tty_operations console_ops = {
.
flush_buffer
=
line_flush_buffer
,
.
flush_chars
=
line_flush_chars
,
.
set_termios
=
line_set_termios
,
.
ioctl
=
line_ioctl
,
.
throttle
=
line_throttle
,
.
unthrottle
=
line_unthrottle
,
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录