Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
linux下的write函数的源代码实现是怎样的呢?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
黄虎才  
View profile   Translate to Translated (View Original)
 More options Apr 24 2010, 10:22 pm
From: 黄虎才 <chinahhu...@gmail.com>
Date: Sun, 25 Apr 2010 10:22:03 +0800
Local: Sat, Apr 24 2010 10:22 pm
Subject: [XiYouLinux] linux下的write函数的源代码实现是怎样的呢?

linux下的write函数的源代码实现是怎样的呢?查看了glibc中的源代码也没有看到其实现!

--
要退订此论坛请发邮件至 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
monan  
View profile   Translate to Translated (View Original)
 More options Apr 25 2010, 4:53 am
From: monan <mo...@21cn.com>
Date: Sun, 25 Apr 2010 16:53:57 +0800
Local: Sun, Apr 25 2010 4:53 am
Subject: Re: [XiYouLinux] linux下的write函数的源代码实现是怎样的呢?
于 2010年04月25日 10:22, 黄虎才 写道:
> linux下的write函数的源代码实现是怎样的呢?查看了glibc中的源代码也没有
> 看到其实现!
> --
> 要退订此论坛请发邮件至 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

看看vfs弄了什么的
想更具体的话 就随便抓一个字符设备的驱动来看啊……

--
要退订此论坛请发邮件至 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SIE  
View profile   Translate to Translated (View Original)
 More options Apr 25 2010, 10:16 pm
From: SIE <kensou.sie....@gmail.com>
Date: Mon, 26 Apr 2010 10:16:01 +0800
Local: Sun, Apr 25 2010 10:16 pm
Subject: Re: [XiYouLinux] linux下的write函数的源代码实现是怎样的呢?

在 2010年4月25日 上午10:22,黄虎才 <chinahhu...@gmail.com>写道:

> linux下的write函数的源代码实现是怎样的呢?查看了glibc中的源代码也没有看到其实现!

glibc里头应该只有fwrite吧?
write应该去看内核代码吧。
详细步骤不记得了,大致是到vfs那层,又分什么prepare_write,commit_write之类的,忘掉了。。。。。
一般是到vfs那层有个统一接口,然后具体的fs系统再去实现写动作,例如JFFS2到具体文件系统那层最下面的就是Flash的电擦除和写入了

>  --
> 要退订此论坛请发邮件至 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

--
#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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amerigo Wang  
View profile   Translate to Translated (View Original)
 More options Apr 26 2010, 2:31 am
From: Amerigo Wang <xiyou.wangc...@gmail.com>
Date: Mon, 26 Apr 2010 14:31:05 +0800
Local: Mon, Apr 26 2010 2:31 am
Subject: Re: [XiYouLinux] linux下的write函数的源代码实现是怎样的呢?

On Sun, Apr 25, 2010 at 10:22:03AM +0800, 黄虎才 wrote:
>linux下的write函数的源代码实现是怎样的呢?查看了glibc中的源代码也没有看到其实现!

你之所以找不到是因为它们是由脚本生成的,你需要查看:

sysdeps/unix/make-syscalls.sh
sysdeps/unix/syscalls.list
sysdeps/unix/syscall-template.S

--
要退订此论坛请发邮件至 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
黄虎才  
View profile   Translate to Translated (View Original)
 More options Apr 26 2010, 4:43 am
From: 黄虎才 <chinahhu...@gmail.com>
Date: Mon, 26 Apr 2010 16:43:46 +0800
Local: Mon, Apr 26 2010 4:43 am
Subject: Re: [XiYouLinux] linux下的write函数的源代码实现是怎样的呢?

在 2010年4月26日 下午2:31,Amerigo Wang <xiyou.wangc...@gmail.com>写道:

> On Sun, Apr 25, 2010 at 10:22:03AM +0800, 黄虎才 wrote:
> >linux下的write函数的源代码实现是怎样的呢?查看了glibc中的源代码也没有看到其实现!

> 你之所以找不到是因为它们是由脚本生成的,你需要查看:

> sysdeps/unix/make-syscalls.sh
> sysdeps/unix/syscalls.list
> sysdeps/unix/syscall-template.S

>    就是这个了,谢谢学长!

--
要退订此论坛请发邮件至 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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »