<?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; dhanashri</title>
	<atom:link href="https://www.emblogic.com/blog/author/dhanashri/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>IPC</title>
		<link>https://www.emblogic.com/blog/06/ipc-2/</link>
		<comments>https://www.emblogic.com/blog/06/ipc-2/#comments</comments>
		<pubDate>Wed, 20 Jun 2012 07:45:10 +0000</pubDate>
		<dc:creator><![CDATA[dhanashri]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=3400</guid>
		<description><![CDATA[When two processes are communicating via fifo and if they are in the blocking state say block on open, block on read/write, what is the state of the process during this blocking state. Is it sleep state or wait state &#8230; <a href="https://www.emblogic.com/blog/06/ipc-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>When two processes are communicating via fifo and if they are in the blocking state say block on open, block on read/write, what is the state of the process during this blocking state. Is it sleep state or wait state or anything else. Kindly clarify how kernel differentiate<br />
between wait and sleep processes. </p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/06/ipc-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Something important abt pointer</title>
		<link>https://www.emblogic.com/blog/04/something-important-abt-pointer/</link>
		<comments>https://www.emblogic.com/blog/04/something-important-abt-pointer/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 12:24:44 +0000</pubDate>
		<dc:creator><![CDATA[dhanashri]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=2527</guid>
		<description><![CDATA[int main(void) { char *ptr; ptr = malloc(sizeof(char)*20); printf(&#8220;%p\n&#8221;, ptr); ptr = &#8220;hello&#8221;; printf(&#8220;%p\n&#8221;, ptr); printf(&#8220;The sting is %s\n&#8221;, ptr); free(ptr); return 0; } Check the above program. Ptr address is different in first and second case. Also free will &#8230; <a href="https://www.emblogic.com/blog/04/something-important-abt-pointer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>int main(void)<br />
{<br />
char *ptr;<br />
ptr = malloc(sizeof(char)*20);</p>
<p>printf(&#8220;%p\n&#8221;, ptr);<br />
ptr = &#8220;hello&#8221;;<br />
printf(&#8220;%p\n&#8221;, ptr);<br />
printf(&#8220;The sting is %s\n&#8221;, ptr);<br />
free(ptr);<br />
return 0;<br />
}<br />
Check the above program. Ptr address is different in first and second case. Also free will give segmentation error. Because allocated mem and where hello string is there are different. So the correct way of copying string is strcpy(ptr, &#8220;hello&#8221;) and not by ptr = &#8220;hello&#8221;;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/04/something-important-abt-pointer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Driver Assignment</title>
		<link>https://www.emblogic.com/blog/04/driver-assignment/</link>
		<comments>https://www.emblogic.com/blog/04/driver-assignment/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 08:24:17 +0000</pubDate>
		<dc:creator><![CDATA[dhanashri]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=2437</guid>
		<description><![CDATA[Following assignments to complete. 1) Implement lkm in which perform reading writting for multiple quantums. 2) Write two different application, one for reading and one for writting. Make a common node. Writer will write and reader will read. 3) Read &#8230; <a href="https://www.emblogic.com/blog/04/driver-assignment/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Following assignments to complete.<br />
1) Implement lkm in which perform reading writting for multiple quantums.<br />
2) Write two different application, one for reading and one for writting. Make a common node. Writer will write and reader will read.<br />
3) Read and deallocate the quantums and qset after reading.<br />
4) Write multithreaded application when there would be a writer thread and reader thread within the same application.<br />
5) Implement llseek operation across the quantums.<br />
6) Implement the non-seekable device by using the non-seekable open call. Create the 2.x version for non-seekable driver under rcs.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/04/driver-assignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Char Driver</title>
		<link>https://www.emblogic.com/blog/03/char-driver-5/</link>
		<comments>https://www.emblogic.com/blog/03/char-driver-5/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 10:56:47 +0000</pubDate>
		<dc:creator><![CDATA[dhanashri]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=2273</guid>
		<description><![CDATA[Implememted multiple quantums writing and reading successfully.]]></description>
				<content:encoded><![CDATA[<p>Implememted multiple quantums writing and reading successfully.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/char-driver-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SizeofStruct</title>
		<link>https://www.emblogic.com/blog/03/sizeofstruct/</link>
		<comments>https://www.emblogic.com/blog/03/sizeofstruct/#comments</comments>
		<pubDate>Wed, 28 Mar 2012 06:59:45 +0000</pubDate>
		<dc:creator><![CDATA[dhanashri]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=2271</guid>
		<description><![CDATA[struct Node { int data; struct Node *next; }var; int main() { printf(&#8220;SIze of struct = %d\n&#8221;, sizeof(struct Node)); return 0; } Here it is printing 16. Can someone explain how it is printing 16?]]></description>
				<content:encoded><![CDATA[<p>struct Node<br />
{<br />
int data;<br />
struct Node *next;<br />
}var;<br />
int main()<br />
{<br />
printf(&#8220;SIze of struct = %d\n&#8221;, sizeof(struct Node));<br />
return 0;<br />
}<br />
Here it is printing 16.<br />
Can someone explain how it is printing 16?</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/sizeofstruct/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Assignment</title>
		<link>https://www.emblogic.com/blog/01/assignment-3/</link>
		<comments>https://www.emblogic.com/blog/01/assignment-3/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 03:24:17 +0000</pubDate>
		<dc:creator><![CDATA[dhanashri]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=1702</guid>
		<description><![CDATA[completed Assignment 1]]></description>
				<content:encoded><![CDATA[<p>completed Assignment 1</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/01/assignment-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Assignment</title>
		<link>https://www.emblogic.com/blog/01/assignment/</link>
		<comments>https://www.emblogic.com/blog/01/assignment/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 09:28:37 +0000</pubDate>
		<dc:creator><![CDATA[dhanashri]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=1649</guid>
		<description><![CDATA[updated assignment 005_21_Assignment_1]]></description>
				<content:encoded><![CDATA[<p>updated assignment 005_21_Assignment_1</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/01/assignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
