<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EmbLogic &#187; Project 11: A Character Device Drivers Based Project</title>
	<atom:link href="https://www.emblogic.com/blog/category/project-11-a-character-device-drivers-based-project/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Memset,Memmove,Memcopy Function</title>
		<link>https://www.emblogic.com/blog/05/memsetmemmovememcopy-function/</link>
		<comments>https://www.emblogic.com/blog/05/memsetmemmovememcopy-function/#comments</comments>
		<pubDate>Thu, 22 May 2014 05:02:25 +0000</pubDate>
		<dc:creator><![CDATA[prakhar_saxena]]></dc:creator>
				<category><![CDATA[Project 11: A Character Device Drivers Based Project]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=10166</guid>
		<description><![CDATA[The memset() Function To set all the bytes in a block of memory to a particular value, use memset(). The function prototype is void * memset(void *dest, int c, size_t count); The argument dest points to the block of memory. &#8230; <a href="https://www.emblogic.com/blog/05/memsetmemmovememcopy-function/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<h3><strong>The memset() Function</strong></h3>
<p>To set all the bytes in a block of memory to a particular value, use memset(). The function prototype is</p>
<p><code>void * memset(void </code><em><code>*dest</code></em><code>, int </code><em><code>c</code></em><code>, size_t </code><em><code>count</code></em><code>); </code></p>
<p>The argument dest points to the block of memory. c is the value to set, and <i>count</i> is the number of bytes, starting at dest, to be set. Note that while c is a type int, it is treated as a type char. In other words, only the low-order byte is used, and you can specify values of c only in the range 0 through 255.</p>
<p>Use memset() to initialize a block of memory to a specified value. Because this function can use only a type char as the initialization value, it is not useful for working with blocks of data types other than type char, except when you want to initialize to 0. In other words, it wouldn&#8217;t be efficient to use memset() to initialize an array of type int to the value 99, but you could initialize all array elements to the value 0.</p>
<h3><strong>The memcpy() Function</strong></h3>
<p>memcpy() copies bytes of data between memory blocks, sometimes called <i>buffers</i>. This function doesn&#8217;t care about the type of data being copied&#8211;it simply makes an exact byte-for-byte copy. The function prototype is</p>
<p><code>void *memcpy(void *dest, void *src, size_t <i>count</i>); </code></p>
<p>The arguments dest and src point to the destination and source memory blocks, respectively. <i>count</i> specifies the number of bytes to be copied. The return value is dest. If the two blocks of memory overlap, the function might not operate properly&#8211;some of the data in src might be overwritten before being copied.</p>
<h3><strong>The memmove() Function</strong></h3>
<p>memmove() is very much like memcpy(), copying a specified number of bytes from one memory block to another. It&#8217;s more flexible, however, because it can handle overlapping memory blocks properly. Because memmove() can do everything memcpy() can do with the added flexibility of dealing with overlapping blocks. The prototype is</p>
<p><code>void *memmove(void *dest, void *src, size_t <i>count</i>); </code></p>
<p>dest and src point to the destination and source memory blocks, and <i>count</i> specifies the number of bytes to be copied. The return value is dest. If the blocks overlap, this function ensures that the source data in the overlapped region is copied before being overwritten.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/05/memsetmemmovememcopy-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MODULE FIRST PROGRAM DEVICE DRIVER</title>
		<link>https://www.emblogic.com/blog/02/module-first-program-device-driver/</link>
		<comments>https://www.emblogic.com/blog/02/module-first-program-device-driver/#comments</comments>
		<pubDate>Tue, 04 Feb 2014 10:24:35 +0000</pubDate>
		<dc:creator><![CDATA[ramandeep.singh]]></dc:creator>
				<category><![CDATA[Project 11: A Character Device Drivers Based Project]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=8247</guid>
		<description><![CDATA[head    1.1; 2 access; 3 symbols; 4 locks 5         emblogic:1.1; strict; 6 comment @ * @; 7 8 9 1.1 10 date    2014.02.04.04.44.59;    author emblogic;        state Exp; 11 branches; 12 next    ; 13 14 15 desc 16 @this is the &#8230; <a href="https://www.emblogic.com/blog/02/module-first-program-device-driver/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>head    1.1;<br />
2 access;<br />
3 symbols;<br />
4 locks<br />
5         emblogic:1.1; strict;<br />
6 comment @ * @;<br />
7<br />
8<br />
9 1.1<br />
10 date    2014.02.04.04.44.59;    author emblogic;        state Exp;<br />
11 branches;<br />
12 next    ;<br />
13<br />
14<br />
15 desc<br />
16 @this is the header file of first module driver program<br />
17 @<br />
18<br />
19<br />
20 1.1<br />
21 log<br />
22 @Initial revision<br />
23 @<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>head    1.1;<br />
2 access;<br />
3 symbols;<br />
4 locks<br />
5         emblogic:1.1; strict;<br />
6 comment @ * @;<br />
7<br />
8<br />
9 1.1<br />
10 date    2014.02.04.04.44.21;    author emblogic;        state Exp;<br />
11 branches;<br />
12 next    ;<br />
13<br />
14<br />
15 desc<br />
16 @this is the exit.c to remove the module<br />
17 @<br />
18<br />
19<br />
20 1.1<br />
21 log<br />
22 @Initial revision<br />
23 @<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;head    1.1;<br />
2 access;<br />
3 symbols;<br />
4 locks<br />
5         emblogic:1.1; strict;<br />
6 comment @ * @;<br />
7<br />
8<br />
9 1.1<br />
10 date    2014.02.04.04.41.13;    author emblogic;        state Exp;<br />
11 branches;<br />
12 next    ;<br />
13<br />
14<br />
15 desc<br />
16 @this is the initialization file init.c<br />
17 @<br />
18<br />
19<br />
20 1.1<br />
21 log<br />
22 @Initial revision<br />
23 @</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/02/module-first-program-device-driver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Re: /proc filesystem</title>
		<link>https://www.emblogic.com/blog/10/re-proc-filesystem/</link>
		<comments>https://www.emblogic.com/blog/10/re-proc-filesystem/#comments</comments>
		<pubDate>Wed, 31 Oct 2012 10:54:52 +0000</pubDate>
		<dc:creator><![CDATA[Anil Kumar]]></dc:creator>
				<category><![CDATA[Character Driver]]></category>
		<category><![CDATA[Project 11: A Character Device Drivers Based Project]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=5620</guid>
		<description><![CDATA[Sir, I have implemented /proc file system  successfully.]]></description>
				<content:encoded><![CDATA[<p>Sir, I have implemented /proc file system  successfully.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/re-proc-filesystem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PROJECT 11</title>
		<link>https://www.emblogic.com/blog/10/project-11-3/</link>
		<comments>https://www.emblogic.com/blog/10/project-11-3/#comments</comments>
		<pubDate>Fri, 12 Oct 2012 15:11:15 +0000</pubDate>
		<dc:creator><![CDATA[saurabh.aggarwal]]></dc:creator>
				<category><![CDATA[Device Drivers]]></category>
		<category><![CDATA[Project 11: A Character Device Drivers Based Project]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=5534</guid>
		<description><![CDATA[sir please publish the project 11 thread ..its still in draft stage.. updates&#8230;. saurabh :facing problem with lseek in write  working on menu table of read, write and optimization of lseek. sumit massey : done optimisation on lseek , read &#8230; <a href="https://www.emblogic.com/blog/10/project-11-3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>sir please publish the project 11 thread ..its still in draft stage..</p>
<p>updates&#8230;.</p>
<p>saurabh :facing problem with lseek in write  working on menu table of read, write and optimization of lseek.</p>
<p>sumit massey : done optimisation on lseek , read and currently working on semaphores.</p>
<p>anil : implementing and facing problems in semaphores&#8230;</p>
<p>gaurav :working on read and write..</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/project-11-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
