Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
005a59ec
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看板
提交
005a59ec
编写于
4月 21, 2009
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Deal with missing exports for hostfs
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
51102ee5
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
28 addition
and
3 deletion
+28
-3
arch/um/include/shared/os.h
arch/um/include/shared/os.h
+3
-0
arch/um/kernel/ksyms.c
arch/um/kernel/ksyms.c
+3
-0
arch/um/os-Linux/file.c
arch/um/os-Linux/file.c
+15
-0
arch/um/os-Linux/user_syms.c
arch/um/os-Linux/user_syms.c
+4
-0
fs/hostfs/hostfs_user.c
fs/hostfs/hostfs_user.c
+3
-3
未找到文件。
arch/um/include/shared/os.h
浏览文件 @
005a59ec
...
...
@@ -161,6 +161,9 @@ extern int os_stat_filesystem(char *path, long *bsize_out,
long
*
spare_out
);
extern
int
os_change_dir
(
char
*
dir
);
extern
int
os_fchange_dir
(
int
fd
);
extern
unsigned
os_major
(
unsigned
long
long
dev
);
extern
unsigned
os_minor
(
unsigned
long
long
dev
);
extern
unsigned
long
long
os_makedev
(
unsigned
major
,
unsigned
minor
);
/* start_up.c */
extern
void
os_early_checks
(
void
);
...
...
arch/um/kernel/ksyms.c
浏览文件 @
005a59ec
...
...
@@ -58,6 +58,9 @@ EXPORT_SYMBOL(os_accept_connection);
EXPORT_SYMBOL
(
os_rcv_fd
);
EXPORT_SYMBOL
(
run_helper
);
EXPORT_SYMBOL
(
start_thread
);
EXPORT_SYMBOL
(
os_major
);
EXPORT_SYMBOL
(
os_minor
);
EXPORT_SYMBOL
(
os_makedev
);
EXPORT_SYMBOL
(
add_sigio_fd
);
EXPORT_SYMBOL
(
ignore_sigio_fd
);
...
...
arch/um/os-Linux/file.c
浏览文件 @
005a59ec
...
...
@@ -561,3 +561,18 @@ int os_lock_file(int fd, int excl)
out:
return
err
;
}
unsigned
os_major
(
unsigned
long
long
dev
)
{
return
major
(
dev
);
}
unsigned
os_minor
(
unsigned
long
long
dev
)
{
return
minor
(
dev
);
}
unsigned
long
long
os_makedev
(
unsigned
major
,
unsigned
minor
)
{
return
makedev
(
major
,
minor
);
}
arch/um/os-Linux/user_syms.c
浏览文件 @
005a59ec
...
...
@@ -103,6 +103,10 @@ EXPORT_SYMBOL_PROTO(getuid);
EXPORT_SYMBOL_PROTO
(
fsync
);
EXPORT_SYMBOL_PROTO
(
fdatasync
);
EXPORT_SYMBOL_PROTO
(
lstat64
);
EXPORT_SYMBOL_PROTO
(
fstat64
);
EXPORT_SYMBOL_PROTO
(
mknod
);
/* Export symbols used by GCC for the stack protector. */
extern
void
__stack_smash_handler
(
void
*
)
__attribute__
((
weak
));
EXPORT_SYMBOL
(
__stack_smash_handler
);
...
...
fs/hostfs/hostfs_user.c
浏览文件 @
005a59ec
...
...
@@ -76,9 +76,9 @@ int file_type(const char *path, int *maj, int *min)
* about its definition.
*/
if
(
maj
!=
NULL
)
*
maj
=
major
(
buf
.
st_rdev
);
*
maj
=
os_
major
(
buf
.
st_rdev
);
if
(
min
!=
NULL
)
*
min
=
minor
(
buf
.
st_rdev
);
*
min
=
os_
minor
(
buf
.
st_rdev
);
if
(
S_ISDIR
(
buf
.
st_mode
))
return
OS_TYPE_DIR
;
...
...
@@ -361,7 +361,7 @@ int do_mknod(const char *file, int mode, unsigned int major, unsigned int minor)
{
int
err
;
err
=
mknod
(
file
,
mode
,
makedev
(
major
,
minor
));
err
=
mknod
(
file
,
mode
,
os_
makedev
(
major
,
minor
));
if
(
err
)
return
-
errno
;
return
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录