<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic disable autoload dlkm module in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-autoload-dlkm-module/m-p/4529536#M368073</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have written a simple kernel module "mymod". and mknod a special file "/dev/mymod_ctl".&lt;BR /&gt;Here is what I do:&lt;BR /&gt;&lt;BR /&gt;1. kmadmin -L mymod =&amp;gt; module gets loaded&lt;BR /&gt;2. kmadmin -U mymod =&amp;gt; module gets unloaded&lt;BR /&gt;3. dd if=/dev/mymod_ctl of=/dev/null count=1 =&amp;gt; module gets loaded again by itself&lt;BR /&gt;4. kmadmin -U mymod =&amp;gt; "Device busy" module unload fails&lt;BR /&gt;&lt;BR /&gt;note that /dev/mymod_ctl has minor number 0 and mymod_open() and mymod_close() just return 0 if minor number is 0&lt;BR /&gt;&lt;BR /&gt;What I want to know is that What is happening in steps 3 and 4 which is different than 1 and 2 as far as module loading/unloading is concerned?&lt;BR /&gt;&lt;BR /&gt;How can I avoid autoloading mymod in step 3. &lt;BR /&gt;&lt;BR /&gt;Please help!!</description>
    <pubDate>Sat, 07 Nov 2009 00:03:39 GMT</pubDate>
    <dc:creator>Ashes</dc:creator>
    <dc:date>2009-11-07T00:03:39Z</dc:date>
    <item>
      <title>disable autoload dlkm module</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-autoload-dlkm-module/m-p/4529536#M368073</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have written a simple kernel module "mymod". and mknod a special file "/dev/mymod_ctl".&lt;BR /&gt;Here is what I do:&lt;BR /&gt;&lt;BR /&gt;1. kmadmin -L mymod =&amp;gt; module gets loaded&lt;BR /&gt;2. kmadmin -U mymod =&amp;gt; module gets unloaded&lt;BR /&gt;3. dd if=/dev/mymod_ctl of=/dev/null count=1 =&amp;gt; module gets loaded again by itself&lt;BR /&gt;4. kmadmin -U mymod =&amp;gt; "Device busy" module unload fails&lt;BR /&gt;&lt;BR /&gt;note that /dev/mymod_ctl has minor number 0 and mymod_open() and mymod_close() just return 0 if minor number is 0&lt;BR /&gt;&lt;BR /&gt;What I want to know is that What is happening in steps 3 and 4 which is different than 1 and 2 as far as module loading/unloading is concerned?&lt;BR /&gt;&lt;BR /&gt;How can I avoid autoloading mymod in step 3. &lt;BR /&gt;&lt;BR /&gt;Please help!!</description>
      <pubDate>Sat, 07 Nov 2009 00:03:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-autoload-dlkm-module/m-p/4529536#M368073</guid>
      <dc:creator>Ashes</dc:creator>
      <dc:date>2009-11-07T00:03:39Z</dc:date>
    </item>
  </channel>
</rss>

