<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi </span><div style="font-family:arial,sans-serif;font-size:13px">I just tested it on my Ubutu 13.04 (default kernel) , it is working .</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>[30971.042909] Demonstrating module parameters</div><div>[30971.042913] ===============================</div><div>[30971.042915] myshort is a short integer: 1</div>
<div>[30971.042916] myint is an integer: 420</div><div>[30971.042918] mylong is a long integer: 9999</div><div>[30971.042919] mystring is a string: blah</div><div>[30971.042921] myintArray[0] = -1</div><div>[30971.042922] myintArray[1] = -1</div>
<div>[30971.042923] got 0 arguments for myintArray.</div><div>[30985.316843] Goodbye...</div><div>[30985.316847] ===============================</div><div>[31009.307672] Demonstrating module parameters</div><div>[31009.307675] ===============================</div>
<div>[31009.307676] myshort is a short integer: 1</div><div>[31009.307677] myint is an integer: 420</div><div>[31009.307678] mylong is a long integer: 9999</div><div>[31009.307678] mystring is a string: abcd</div><div>[31009.307679] myintArray[0] = -1</div>
<div>[31009.307680] myintArray[1] = -1</div><div>[31009.307680] got 0 arguments for myintArray.</div><div>[31020.217402] Goodbye...</div><div>[31020.217407] ===============================</div><div>[31027.604150] Demonstrating module parameters</div>
<div>[31027.604153] ===============================</div><div>[31027.604155] myshort is a short integer: 1</div><div>[31027.604157] myint is an integer: 420</div><div>[31027.604159] mylong is a long integer: 9999</div><div>
[31027.604160] mystring is a string: vectordefefe</div><div>[31027.604162] myintArray[0] = -1</div><div>[31027.604163] myintArray[1] = -1</div><div>[31027.604164] got 0 arguments for myintArray.</div><div>sudip@sudip-PC:~/modules$ uname -a</div>
<div>Linux sudip-PC 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux</div><div>sudip@sudip-PC:~/modules$ lsb_release -a</div><div class="im"><div>No LSB modules are available.</div>
<div>Distributor ID:<span style="white-space:pre-wrap">        </span>Ubuntu</div><div>Description:<span style="white-space:pre-wrap">        </span>Ubuntu 13.04</div><div>Release:<span style="white-space:pre-wrap">        </span>13.04</div><div>
Codename:<span style="white-space:pre-wrap">        </span>raring</div><div><br></div><div>Regards</div><div>Sudip</div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 6, 2013 at 6:40 PM, Sudip Mukherjee <span dir="ltr"><<a href="mailto:sudipm.mukherjee@gmail.com" target="_blank">sudipm.mukherjee@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi <div>I just tested it on my Ubutu 13.04 (default kernel) , it is working .</div><div><br></div><div><div>
[30971.042909] Demonstrating module parameters</div><div>[30971.042913] ===============================</div>
<div>[30971.042915] myshort is a short integer: 1</div><div>[30971.042916] myint is an integer: 420</div><div>[30971.042918] mylong is a long integer: 9999</div><div>[30971.042919] mystring is a string: blah</div><div>[30971.042921] myintArray[0] = -1</div>
<div>[30971.042922] myintArray[1] = -1</div><div>[30971.042923] got 0 arguments for myintArray.</div><div>[30985.316843] Goodbye...</div><div>[30985.316847] ===============================</div><div>[31009.307672] Demonstrating module parameters</div>
<div>[31009.307675] ===============================</div><div>[31009.307676] myshort is a short integer: 1</div><div>[31009.307677] myint is an integer: 420</div><div>[31009.307678] mylong is a long integer: 9999</div><div>
[31009.307678] mystring is a string: abcd</div><div>[31009.307679] myintArray[0] = -1</div><div>[31009.307680] myintArray[1] = -1</div><div>[31009.307680] got 0 arguments for myintArray.</div><div>[31020.217402] Goodbye...</div>
<div>[31020.217407] ===============================</div><div>[31027.604150] Demonstrating module parameters</div><div>[31027.604153] ===============================</div><div>[31027.604155] myshort is a short integer: 1</div>
<div>[31027.604157] myint is an integer: 420</div><div>[31027.604159] mylong is a long integer: 9999</div><div>[31027.604160] mystring is a string: vectordefefe</div><div>[31027.604162] myintArray[0] = -1</div><div>[31027.604163] myintArray[1] = -1</div>
<div>[31027.604164] got 0 arguments for myintArray.</div><div>sudip@sudip-PC:~/modules$ uname -a</div><div>Linux sudip-PC 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux</div><div>
sudip@sudip-PC:~/modules$ lsb_release -a</div><div class="im"><div>No LSB modules are available.</div><div>Distributor ID:<span style="white-space:pre-wrap">        </span>Ubuntu</div><div>Description:<span style="white-space:pre-wrap">        </span>Ubuntu 13.04</div>
<div>Release:<span style="white-space:pre-wrap">        </span>13.04</div><div>Codename:<span style="white-space:pre-wrap">        </span>raring</div><div><br></div></div></div><div>Regards</div><span class="HOEnZb"><font color="#888888"><div>
Sudip</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Sep 6, 2013 at 4:47 PM, <span dir="ltr"><<a href="mailto:binoy.jayan@wipro.com" target="_blank">binoy.jayan@wipro.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi Srinivas,<br>
<br>
Thank you for the inputs. The modules works fine with the kernels that come with Ubuntu 10.04, 11.04, 12.04 and 12.10.<br>
But, we are supporting a product for every latest Ubuntu versions. So, I need to make it work with the kernel which comes with the distro alone.
<br>
So I cannot use a custom kernel from <a href="http://kernel.org" target="_blank">kernel.org</a>.<br>
<div><br>
<br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div>
<div>
<div>
<div dir="ltr"><font face="Tahoma" color="black"><span dir="ltr" style="font-size:10pt">
<div>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div>
<div>
<div>
<div dir="ltr"><font face="Tahoma" color="black"><span dir="ltr" style="font-size:10pt">
<div>
<div style="margin:0 0 2pt 0"><font face="Tahoma,sans-serif" size="1" color="#7F7F7F"><span style="font-size:8pt">Regards,</span></font></div>
<div style="margin:0 0 2pt 0"><font face="Tahoma,sans-serif" size="1" color="#404040"><span style="font-size:8pt"><b>Binoy Jayan</b></span></font></div>
<div style="margin:0 0 2pt 0"><font face="Tahoma,sans-serif" size="1" color="808080"><span style="font-size:8pt" lang="de"><br>
</span></font></div>
</div>
</span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000"><b>From:</b> Srinivas Ganji [<a href="mailto:srinivasganji.kernel@gmail.com" target="_blank">srinivasganji.kernel@gmail.com</a>]<br>
<b>Sent:</b> Friday, September 06, 2013 4:34 PM<div><br>
<b>To:</b> Binoy Jayan (WT01 - Manufacturing & Hi Tech)<br>
<b>Cc:</b> <a href="mailto:kernelnewbies@kernelnewbies.org" target="_blank">kernelnewbies@kernelnewbies.org</a><br>
<b>Subject:</b> Re: module_param does not work in Ubuntu 13.10 - Kernel 3.10.0-4<br>
</div></font><br>
</div><div><div>
<div></div>
<div>
<div dir="ltr">I have also tested, build KO file using your C file, on my kernel and it is working fine. The kernel version is 3.2.11
<div><br>
</div>
<div>Why don't you try any other kernel version and see whether you are getting same error or not? I guess, it works.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Srinivas G </div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Sep 6, 2013 at 10:22 AM, <span dir="ltr"><<a href="mailto:binoy.jayan@wipro.com" target="_blank">binoy.jayan@wipro.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I use the kernel version "3.10.0-4" that came with Ubuntu distribution.<br>
When I compile the example module I got from LKMPG (hello-5.c) and try to load the driver by passing the module with the following command, it gives the following error:<br>
<br>
# insmod parameter.ko mystring="bebop"<br>
Error: could not insert module parameter.ko: Unknown symbol in module<br>
<br>
Error in dmesg:<br>
<br>
[ 3687.132110] parameter: Unknown parameter `mystring'<br>
<br>
However, if I insert the module without any parameters, it gets inserted just fine.<br>
<br>
# insmod parameter.ko<br>
<br>
I am attaching the source code for reference. Kindly let me know what could be done.<br>
<br>
Thanks,<br>
Binoy<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Regards,<br>
Binoy Jayan<br>
WIPRO TECHNOLOGIES<br>
| Electronic City 5<br>
|<br>
Bangalore<br>
| Mob:<br>
+91-9742870916,<br>
+91-9745783048<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Please do not print this email unless it is absolutely necessary.<br>
<br>
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should
not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.<br>
<br>
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.<br>
<br>
<a href="http://www.wipro.com" target="_blank">www.wipro.com</a><br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
</div><div><div>
<p><strong><span style="font-size:10.0pt;font-family:"Palatino Linotype","serif";color:green"> Please do not print this email unless it is absolutely necessary. </span></strong><span style="font-family:"Arial","sans-serif""><u></u><u></u></span></p>
<p> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. </p>
<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. </p>
<p>
<a href="http://www.wipro.com" target="_blank">www.wipro.com</a>
</p>
</div></div></div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>