<?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; Sanny Singh</title>
	<atom:link href="https://www.emblogic.com/blog/author/sanny72singh/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>How to Write a Writer Routine.</title>
		<link>https://www.emblogic.com/blog/12/how-to-write-a-writer-routine/</link>
		<comments>https://www.emblogic.com/blog/12/how-to-write-a-writer-routine/#comments</comments>
		<pubDate>Wed, 16 Dec 2015 06:51:16 +0000</pubDate>
		<dc:creator><![CDATA[Sanny Singh]]></dc:creator>
				<category><![CDATA[Character Driver]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=13025</guid>
		<description><![CDATA[In the char driver We write the Write Routine.  This write routine is mapped in struct file operations . We use copy_from_user macro. this macro has three arguments. first is void* to second is const  void* __user form and last &#8230; <a href="https://www.emblogic.com/blog/12/how-to-write-a-writer-routine/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>In the char driver We write the Write Routine.  This write routine is mapped in struct file operations . We use copy_from_user macro. this macro has three arguments. first is void* to second is const  void* __user form and last argument is how many char  have to write.</p>
<p>first malloc the sqset then malloc sqset-&gt;data and at last create qsetarray. Then malloc qsetarry member one by one and write the data by using copy_from_user macro.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/12/how-to-write-a-writer-routine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data Structures With C</title>
		<link>https://www.emblogic.com/blog/11/data-structures-with-c/</link>
		<comments>https://www.emblogic.com/blog/11/data-structures-with-c/#comments</comments>
		<pubDate>Fri, 20 Nov 2015 05:14:37 +0000</pubDate>
		<dc:creator><![CDATA[Sanny Singh]]></dc:creator>
				<category><![CDATA[Data Structures with C]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=12998</guid>
		<description><![CDATA[In data structure padding some allocate space is free this case is called is padding. Like a example is as as the structure we take three variable that is int,char,float. This is structure allocate 12 byte space. At the architecture &#8230; <a href="https://www.emblogic.com/blog/11/data-structures-with-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>In data structure padding some allocate space is free this case is called is padding. Like a example is as as the structure we take three variable that is int,char,float. This is structure allocate 12 byte space. At the architecture of process it read 1 word at the time.(for 32 bit process 4 byte per word and for 64 bit process 8 byte per word).</p>
<p>struct emblogic</p>
<p>{ int; char;float}blog;</p>
<p>&nbsp;</p>
<p>At this avoid this structure padding in C !</p>
<p>we used</p>
<p>#pragma pack(1)</p>
<p>After that the size of structure this structure is only 9 byte.</p>
<p>My question is where is define this pragma pack(1) (like as include directory  path is /usr/include/ ). And how it works??</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/data-structures-with-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
