<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Wed Jun 19, 2013 10:52 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Wed Jun 19, 2013 10:52 pm</pubDate>
  <lastBuildDate>Wed Jun 19, 2013 10:52 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: how to find parameters that a kernel module takes</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=98609#98609</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Apr 17, 2011 5:30 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      You can also get a list of parameters with&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;modinfo modulename&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=98609#98609</comments>
                                        <author>nelz</author>
                                        <pubDate>Sun Apr 17, 2011 5:30 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=98609#98609</guid>
                                      </item>
                                      <item>
                                        <title>how to find parameters that a kernel module takes</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=98591#98591</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=66535'&gt;John Lumby&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Apr 16, 2011 1:45 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Suppose you have some vague idea that some kernel module may take some parameter telling it what to do,  but can't find out what the parameter is.     Many device drivers have such parms.      Or suppose you are plain curious.   Then you can run this nifty scriptlet to list the parms and their documentation strings :&lt;br /&gt;
&lt;br /&gt;
Suppose the module name is abcxyz&lt;br /&gt;
&lt;br /&gt;
kmod=&amp;quot;abcxyz&amp;quot;;find /lib/modules/`uname -r`/kernel -name ${kmod}.ko -exec strings -a '{}' \; | fgrep -e parm=&lt;br /&gt;
&lt;br /&gt;
Three caveats:&lt;br /&gt;
&lt;br /&gt;
1)      the module must exist under the /lib/modules dir  -  i.e. it must not be built-in to the kernel image&lt;br /&gt;
2)      you have to spell the name exactly -  hyphen and underscore are not interchangeable,   as the scriptlet is looking for a matching file.   But you can run it again with the alternative,  or you can make the find command cleverer for a specific name,  e.g. to look for whichever of parport_pc or parport-pc&lt;br /&gt;
&lt;br /&gt;
find /lib/modules/`uname -r`/kernel -name parport'[-_]'pc.ko -exec strings -a '{}' \; | fgrep -e parm=&lt;br /&gt;
parm=init_mode:Initialise mode for VIA VT8231 port (spp, ps2, epp, ecp or ecpepp)&lt;br /&gt;
parm=dma:DMA channel&lt;br /&gt;
parm=irq:IRQ line&lt;br /&gt;
parm=io_hi:Base I/O address (ECR)&lt;br /&gt;
parm=io:Base I/O address (SPP regs)&lt;br /&gt;
&lt;br /&gt;
3)   some modules parms may be hidden if the kernel was configured to omit the relevant feature,  as they will be compiled out.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=98591#98591</comments>
                                        <author>John Lumby</author>
                                        <pubDate>Sat Apr 16, 2011 1:45 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=98591#98591</guid>
                                      </item></channel></rss>