由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - mmap question
相关主题
glibc和kernel的兼容性问题问个一直没弄明白的initrd/initramfs问题
貌似android不是全开源的。Fedora kernel tokeep question
还是关于用GPL code的问题howto install vboxguestadditions on CentOS.
推荐个distribution?有人玩树梅么? Raspery pi
问一个跟 memory (process address space) 的有关的问题Linux Desktop 还是太保守了
Google go 还挺不错的Ubuntu很多man page没有怎么办?
Linux 的毛病, 更新太快慢机器是不是用 linux 2.4 会快一点,hehe
Linux memory leak even without our application running你们又胡说了,牛人明明都是用cat做编辑器的
相关话题的讨论汇总
话题: mmap话题: kernel话题: question话题: libc话题: kb
进入Linux版参与讨论
1 (共1页)
F*******i
发帖数: 190
1
Daxia,
one question, which lib has the mmap function? Is it libc or from kernel?
thanks!
S*A
发帖数: 7142
2
libc has mmap system call wrappers.
kernel has the real function to do the mmap.

【在 F*******i 的大作中提到】
: Daxia,
: one question, which lib has the mmap function? Is it libc or from kernel?
: thanks!

F*******i
发帖数: 190
3
man, really appreciate the insights!

【在 S*A 的大作中提到】
: libc has mmap system call wrappers.
: kernel has the real function to do the mmap.

F*******i
发帖数: 190
4
one more question SSA.
If i have a program use mmap, will the kernel static linked to my program
or dynmamic linked for mmap?
thanks again!

【在 S*A 的大作中提到】
: libc has mmap system call wrappers.
: kernel has the real function to do the mmap.

j*a
发帖数: 14423
5
this question is invalid.

【在 F*******i 的大作中提到】
: one more question SSA.
: If i have a program use mmap, will the kernel static linked to my program
: or dynmamic linked for mmap?
: thanks again!

F*******i
发帖数: 190
6
so suppose i compile a A program in kernel KA, and run it in kernel KB,
it will use the mmap implementation from KB?
thanks again

【在 j*a 的大作中提到】
: this question is invalid.
j*a
发帖数: 14423
7
true.
A - glibc - K

【在 F*******i 的大作中提到】
: so suppose i compile a A program in kernel KA, and run it in kernel KB,
: it will use the mmap implementation from KB?
: thanks again

F*******i
发帖数: 190
8
thanks a lot

【在 j*a 的大作中提到】
: true.
: A - glibc - K

S*A
发帖数: 7142
9
Yes, it will use the mmap in KB.
Mmap system call, like every other system call, it is just an INT 80h
with some register value set as arguments. It is pretty much like
BIOS call except that is the kernel receiving it. Glibc might use
syscall instruction instead of the INT 80h. But it is really the same.

【在 F*******i 的大作中提到】
: so suppose i compile a A program in kernel KA, and run it in kernel KB,
: it will use the mmap implementation from KB?
: thanks again

F*******i
发帖数: 190
10
thanks!

【在 S*A 的大作中提到】
: Yes, it will use the mmap in KB.
: Mmap system call, like every other system call, it is just an INT 80h
: with some register value set as arguments. It is pretty much like
: BIOS call except that is the kernel receiving it. Glibc might use
: syscall instruction instead of the INT 80h. But it is really the same.

1 (共1页)
进入Linux版参与讨论
相关主题
你们又胡说了,牛人明明都是用cat做编辑器的问一个跟 memory (process address space) 的有关的问题
哪里能看一下fedora glibc 的 make configurationGoogle go 还挺不错的
请问如何在Ububtu9.04安装online manual (e.g. man pthread_exit)Linux 的毛病, 更新太快
花了两天终于完成centos系统升级了Linux memory leak even without our application running
glibc和kernel的兼容性问题问个一直没弄明白的initrd/initramfs问题
貌似android不是全开源的。Fedora kernel tokeep question
还是关于用GPL code的问题howto install vboxguestadditions on CentOS.
推荐个distribution?有人玩树梅么? Raspery pi
相关话题的讨论汇总
话题: mmap话题: kernel话题: question话题: libc话题: kb