<?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>Comments on: register the driver acording to 2.4 kernal give error in rmmod and all hedar file and decleartion are include in heder24.h</title>
	<atom:link href="https://www.emblogic.com/blog/09/register-the-driver-acording-to-2-4-kernal-give-error-in-rmmod-and-all-hedar-file-and-decleartion-are-include-in-heder24-h/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/09/register-the-driver-acording-to-2-4-kernal-give-error-in-rmmod-and-all-hedar-file-and-decleartion-are-include-in-heder24-h/</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>By: kamran</title>
		<link>https://www.emblogic.com/blog/09/register-the-driver-acording-to-2-4-kernal-give-error-in-rmmod-and-all-hedar-file-and-decleartion-are-include-in-heder24-h/#comment-285</link>
		<dc:creator><![CDATA[kamran]]></dc:creator>
		<pubDate>Sun, 02 Oct 2011 19:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=885#comment-285</guid>
		<description><![CDATA[int register_chrdev (unsigned int major,const char *name,const struct file_operations *fops);
the return value is saved in retvl it has to be UNSIGNED INT retvl instead of int.

Since you are passing the retvl as the first argument in unregister_chrdev, WHICH IS UNSIGNED again.
int   unregister_chrdev(unsigned  int  major,  const  char *name);

Plus you can add the following lines to check the unregister_chrdev .

ret = unregister_chrdev(retvl, DEVICE_NAME);
	   if (ret &lt; 0) printk(&quot;Error in unregister_chrdev: %d\n&quot;, ret);

This is help out in atleast understanding the problem encountered during unregister_chrdev the device.]]></description>
		<content:encoded><![CDATA[<p>int register_chrdev (unsigned int major,const char *name,const struct file_operations *fops);<br />
the return value is saved in retvl it has to be UNSIGNED INT retvl instead of int.</p>
<p>Since you are passing the retvl as the first argument in unregister_chrdev, WHICH IS UNSIGNED again.<br />
int   unregister_chrdev(unsigned  int  major,  const  char *name);</p>
<p>Plus you can add the following lines to check the unregister_chrdev .</p>
<p>ret = unregister_chrdev(retvl, DEVICE_NAME);<br />
	   if (ret &lt; 0) printk(&quot;Error in unregister_chrdev: %d\n&quot;, ret);</p>
<p>This is help out in atleast understanding the problem encountered during unregister_chrdev the device.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kuldeep Dhanotia</title>
		<link>https://www.emblogic.com/blog/09/register-the-driver-acording-to-2-4-kernal-give-error-in-rmmod-and-all-hedar-file-and-decleartion-are-include-in-heder24-h/#comment-273</link>
		<dc:creator><![CDATA[Kuldeep Dhanotia]]></dc:creator>
		<pubDate>Sat, 01 Oct 2011 13:23:33 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=885#comment-273</guid>
		<description><![CDATA[i thought we should include 2.4 level headers]]></description>
		<content:encoded><![CDATA[<p>i thought we should include 2.4 level headers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaibhav Singh</title>
		<link>https://www.emblogic.com/blog/09/register-the-driver-acording-to-2-4-kernal-give-error-in-rmmod-and-all-hedar-file-and-decleartion-are-include-in-heder24-h/#comment-260</link>
		<dc:creator><![CDATA[Vaibhav Singh]]></dc:creator>
		<pubDate>Fri, 30 Sep 2011 10:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=885#comment-260</guid>
		<description><![CDATA[Blog the errors also........]]></description>
		<content:encoded><![CDATA[<p>Blog the errors also&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
