<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	〈mmap Sample Code〉的留言	</title>
	<atom:link href="https://blog.richliu.com/2006/10/17/369/mmap-sample-code/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com/2006/10/17/369/mmap-sample-code/</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Thu, 02 Sep 2010 02:33:38 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>
		留言者: Marv		</title>
		<link>https://blog.richliu.com/2006/10/17/369/mmap-sample-code/#comment-44926</link>

		<dc:creator><![CDATA[Marv]]></dc:creator>
		<pubDate>Thu, 02 Sep 2010 02:33:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.richliu.com/2006/10/17/369/#comment-44926</guid>

					<description><![CDATA[還是寫AP好啊~ 不知道底層還是可以寫得很高興~ 東西出來就好~~ 我是不是走錯路啦~~]]></description>
			<content:encoded><![CDATA[<p>還是寫AP好啊~ 不知道底層還是可以寫得很高興~ 東西出來就好~~ 我是不是走錯路啦~~</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: ???		</title>
		<link>https://blog.richliu.com/2006/10/17/369/mmap-sample-code/#comment-39176</link>

		<dc:creator><![CDATA[???]]></dc:creator>
		<pubDate>Tue, 01 Jul 2008 11:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.richliu.com/2006/10/17/369/#comment-39176</guid>

					<description><![CDATA[參考了大大link裡的sample code，不過文章最後的結論好像怪怪的。

mmap()會在當前的user process page table做出一個的 entry 去對應 virtual address to physical address，return回來的雖然是virtual address，但是存取的時候，會真的寫到對應physical address，並不需要多出memcpy的動作，其實是比用ioctl來傳遞資料還快速，ioctl就會需要copy from user or copy to user 的動作。這也是為什麼越來越多 video &#038; graphic card會轉向提供user mode driver，因為直接用mmap() 操作會加快速度，使用ioctl反而會產生context switch 和system call的overhead。]]></description>
			<content:encoded><![CDATA[<p>參考了大大link裡的sample code，不過文章最後的結論好像怪怪的。</p>
<p>mmap()會在當前的user process page table做出一個的 entry 去對應 virtual address to physical address，return回來的雖然是virtual address，但是存取的時候，會真的寫到對應physical address，並不需要多出memcpy的動作，其實是比用ioctl來傳遞資料還快速，ioctl就會需要copy from user or copy to user 的動作。這也是為什麼越來越多 video &amp; graphic card會轉向提供user mode driver，因為直接用mmap() 操作會加快速度，使用ioctl反而會產生context switch 和system call的overhead。</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
