在 2010年4月25日 上午10:22,黄虎才 <chinahhu...@gmail.com>写道:
> linux下的write函数的源代码实现是怎样的呢?查看了glibc中的源代码也没有看到其实现!
glibc里头应该只有fwrite吧?
write应该去看内核代码吧。
详细步骤不记得了,大致是到vfs那层,又分什么prepare_write,commit_write之类的,忘掉了。。。。。
一般是到vfs那层有个统一接口,然后具体的fs系统再去实现写动作,例如JFFS2到具体文件系统那层最下面的就是Flash的电擦除和写入了
--
#apt-get install wife
The following extra packages will be installed:
wife-house wife-car wife-friends wife-dog wife-mother_in_law wife-kid
wife-no_more_tv_sports wife-kidlibs wife-bricomanialibs
The following packages will be upgraded:ego-restrainer freedom-throttler
Estimated installation time: 47 years
Do you want to continue [Y/n]?
--
要退订此论坛请发邮件至 xiyoulinux-unsubscribe@googlegroups.com
更多选项: http://groups.google.com/group/xiyoulinux?hl=zh-CN
提问前建议您阅读:http://www.xiyoulinux.cn/blog/?p=64
也请查看我们的FAQ:http://xiyoulinux.cn/wiki/index.php?title=FAQ