<?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 Re: Misc type module doesn't reuse major numbers in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/misc-type-module-doesn-t-reuse-major-numbers/m-p/2928544#M111119</link>
    <description>I think you've got minor and major numbers confused.  Major numbers are kernel drivers and all devices of the same class have the same major number.  For example:&lt;BR /&gt;&lt;BR /&gt;ls -d /dev/vg*/group&lt;BR /&gt;&lt;BR /&gt;You should see 64 used as the major number for every vg group file.&lt;BR /&gt;&lt;BR /&gt;Its minor number that have to be unique.  Referring to the same example, 0x010000 should be first, then it increments, usually by one, afterwards.&lt;BR /&gt;&lt;BR /&gt;Its minor numbers that are unique.&lt;BR /&gt;</description>
    <pubDate>Mon, 17 Mar 2003 11:40:59 GMT</pubDate>
    <dc:creator>Michael Steele_2</dc:creator>
    <dc:date>2003-03-17T11:40:59Z</dc:date>
    <item>
      <title>Misc type module doesn't reuse major numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/misc-type-module-doesn-t-reuse-major-numbers/m-p/2928543#M111118</link>
      <description>I wrote a Misc type kernel module. It uses automatic major number assignment, but each time I unload and reload it a new major number is assigned.&lt;BR /&gt;The already used major numbers are never reused: so if the first time 240 is assigned, the second time 241 is used and so on up to the time it reaches the maximum value of 254 (or 255??). From that moment I'm not able to load it again; I have to reboot the machine. It seems that the systems thinks that the old majors are something like already in use.&lt;BR /&gt;Is it a normal behaviour? If not what could be wrong with my module? Is there a way to have the system dynamically assign to a Misc module always the same major (at least as long as it is available)?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bernardo</description>
      <pubDate>Mon, 17 Mar 2003 10:12:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/misc-type-module-doesn-t-reuse-major-numbers/m-p/2928543#M111118</guid>
      <dc:creator>Bernardo Pastorelli</dc:creator>
      <dc:date>2003-03-17T10:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Misc type module doesn't reuse major numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/misc-type-module-doesn-t-reuse-major-numbers/m-p/2928544#M111119</link>
      <description>I think you've got minor and major numbers confused.  Major numbers are kernel drivers and all devices of the same class have the same major number.  For example:&lt;BR /&gt;&lt;BR /&gt;ls -d /dev/vg*/group&lt;BR /&gt;&lt;BR /&gt;You should see 64 used as the major number for every vg group file.&lt;BR /&gt;&lt;BR /&gt;Its minor number that have to be unique.  Referring to the same example, 0x010000 should be first, then it increments, usually by one, afterwards.&lt;BR /&gt;&lt;BR /&gt;Its minor numbers that are unique.&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Mar 2003 11:40:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/misc-type-module-doesn-t-reuse-major-numbers/m-p/2928544#M111119</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-03-17T11:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Misc type module doesn't reuse major numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/misc-type-module-doesn-t-reuse-major-numbers/m-p/2928545#M111120</link>
      <description>Bernardo is indeed referring to major numbers. When writing a driver, a major number is used to identify the driver uniquely to the kernel. The LVM driver is permanently assigned 64 as a major number but many drivers are assigned unused major numbers when the driver is added to the kernel. Since the driver is being added and removed dynamically (not a normal circumstance), the in-core automatic major number pointer is incrementing for each new driver that is added. The kernel isn't expecting drivers to be added and deleted as a daily task as this is a driver development function that would be done on a non-production system (ie, reboots are normal).</description>
      <pubDate>Mon, 17 Mar 2003 12:00:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/misc-type-module-doesn-t-reuse-major-numbers/m-p/2928545#M111120</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-03-17T12:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Misc type module doesn't reuse major numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/misc-type-module-doesn-t-reuse-major-numbers/m-p/2928546#M111121</link>
      <description>Bill, is there a way to maintain the same major for a misc driver as it is done for a WSIO driver?&lt;BR /&gt;When I unload a WSIO driver, lsdev reports that the major is still in use by the driver. So when I reload it the old major is reused.&lt;BR /&gt;It is possible to have a Misc driver maintain the same major as done by a WSIO?&lt;BR /&gt;&lt;BR /&gt;Thanks for the support.&lt;BR /&gt;Regards,&lt;BR /&gt;Bernardo</description>
      <pubDate>Mon, 17 Mar 2003 14:08:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/misc-type-module-doesn-t-reuse-major-numbers/m-p/2928546#M111121</guid>
      <dc:creator>Bernardo Pastorelli</dc:creator>
      <dc:date>2003-03-17T14:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Misc type module doesn't reuse major numbers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/misc-type-module-doesn-t-reuse-major-numbers/m-p/2928547#M111122</link>
      <description>I haven't written a driver for HP-UX so I don't know a lot of details about the load/unload functions in HP-UX.</description>
      <pubDate>Mon, 17 Mar 2003 14:16:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/misc-type-module-doesn-t-reuse-major-numbers/m-p/2928547#M111122</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-03-17T14:16:08Z</dc:date>
    </item>
  </channel>
</rss>

