<?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 dynamic driver, unexpected unload() in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamic-driver-unexpected-unload/m-p/2853892#M719686</link>
    <description>Hi,&lt;BR /&gt;I have a DLKM monolithic PCI interface driver, and see that after running 'kmupdate -M xyz', my load() function is called, my attach(), followed by a call to unload().&lt;BR /&gt;&lt;BR /&gt;Next I load the driver 'kmadmin -L', my load() gets called, by not the attach(). &lt;BR /&gt;'kmadmin -Q xyz' shows all is fine.&lt;BR /&gt;However I end up with isc pointer as 0 in my open() routine when I call wsio_get_isc().&lt;BR /&gt;&lt;BR /&gt;That can't be right:&lt;BR /&gt;&lt;BR /&gt;Q: is the load(), attach(), unload() sequence normal from kmupdate?&lt;BR /&gt;&lt;BR /&gt;Q: why is wsio_get_isc() reporting no errors, yet I get a 0 pointer? &lt;BR /&gt;&lt;BR /&gt;Q: how can I get access to my PCI device without isc pointer?</description>
    <pubDate>Wed, 27 Nov 2002 22:49:35 GMT</pubDate>
    <dc:creator>Kym Van Der Linden</dc:creator>
    <dc:date>2002-11-27T22:49:35Z</dc:date>
    <item>
      <title>dynamic driver, unexpected unload()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamic-driver-unexpected-unload/m-p/2853892#M719686</link>
      <description>Hi,&lt;BR /&gt;I have a DLKM monolithic PCI interface driver, and see that after running 'kmupdate -M xyz', my load() function is called, my attach(), followed by a call to unload().&lt;BR /&gt;&lt;BR /&gt;Next I load the driver 'kmadmin -L', my load() gets called, by not the attach(). &lt;BR /&gt;'kmadmin -Q xyz' shows all is fine.&lt;BR /&gt;However I end up with isc pointer as 0 in my open() routine when I call wsio_get_isc().&lt;BR /&gt;&lt;BR /&gt;That can't be right:&lt;BR /&gt;&lt;BR /&gt;Q: is the load(), attach(), unload() sequence normal from kmupdate?&lt;BR /&gt;&lt;BR /&gt;Q: why is wsio_get_isc() reporting no errors, yet I get a 0 pointer? &lt;BR /&gt;&lt;BR /&gt;Q: how can I get access to my PCI device without isc pointer?</description>
      <pubDate>Wed, 27 Nov 2002 22:49:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamic-driver-unexpected-unload/m-p/2853892#M719686</guid>
      <dc:creator>Kym Van Der Linden</dc:creator>
      <dc:date>2002-11-27T22:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic driver, unexpected unload()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamic-driver-unexpected-unload/m-p/2853893#M719687</link>
      <description>I too face a similar problem, I wrote a DLKM "MyDiver", for which I added a startup script to load in the boot up. I see that, Driver loads when the startup script calls kmadmin -L MyDriver, but soon after someone called, unload routine of MyDriver and the driver got unloaded. Though it is automatically loaded when a call like open(/dev/MyDriver) comes. But my concern is who is calling unload routine and why?&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Feb 2003 07:24:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamic-driver-unexpected-unload/m-p/2853893#M719687</guid>
      <dc:creator>George Mathew</dc:creator>
      <dc:date>2003-02-03T07:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic driver, unexpected unload()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamic-driver-unexpected-unload/m-p/2853894#M719688</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From kmupdate man page&lt;BR /&gt;&lt;BR /&gt;Immediate Update of  Specified Kernel Modules&lt;BR /&gt;&lt;BR /&gt;      kmupdate may be used for immediately updating the loadable image of a&lt;BR /&gt;      newly created kernel module, without a reboot. If the module_name is&lt;BR /&gt;      loaded, kmupdate tries to unload it and, if the -i option is specified&lt;BR /&gt;      and the module cannot be unloaded, kmupdate exits with an error. If&lt;BR /&gt;      the kernel module was either not loaded or successfully unloaded,&lt;BR /&gt;      kmupdate checks if it is registered, and if so, unregisters the&lt;BR /&gt;      module.  If the kernel module cannot be unregistered, kmupdate exits&lt;BR /&gt;      with an error if -i is specified; otherwise the module will be updated&lt;BR /&gt;      asynchronously.  If the unregistration succeeds, kmupdate overlays the&lt;BR /&gt;      existing loadable image of the module with the newly generated image.&lt;BR /&gt;      It then registers the module with the latest registry information and&lt;BR /&gt;      performs module type specific initialization, if required.  If the&lt;BR /&gt;      module was loaded originally, kmupdate reloads the module before&lt;BR /&gt;      exiting.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                    Steve Steel</description>
      <pubDate>Mon, 03 Feb 2003 09:52:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamic-driver-unexpected-unload/m-p/2853894#M719688</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-02-03T09:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic driver, unexpected unload()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamic-driver-unexpected-unload/m-p/2853895#M719689</link>
      <description>Steve, It seems you have an answer for Linden's original question.&lt;BR /&gt;Do you have any answer for my question? during reboot why does "MyDriver" unloads?&lt;BR /&gt;&lt;BR /&gt;-George</description>
      <pubDate>Mon, 03 Feb 2003 12:07:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamic-driver-unexpected-unload/m-p/2853895#M719689</guid>
      <dc:creator>George Mathew</dc:creator>
      <dc:date>2003-02-03T12:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic driver, unexpected unload()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamic-driver-unexpected-unload/m-p/2853896#M719690</link>
      <description>Thanks Steve!  I was able to find a work around for the problems (had to get the driver done w/in 1 month from original posting of the questions :}).  &lt;BR /&gt;&lt;BR /&gt;Kym</description>
      <pubDate>Tue, 18 Feb 2003 22:47:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamic-driver-unexpected-unload/m-p/2853896#M719690</guid>
      <dc:creator>Kym Van Der Linden</dc:creator>
      <dc:date>2003-02-18T22:47:55Z</dc:date>
    </item>
  </channel>
</rss>

