Changing options to a running net driver (remount ?)

Is it possible to remount (i.e. mount -u) a network driver, so that I could change options ?

Currently I use enum-devices (in an embedded x86 board) to automatically find the network adapters and mount the drivers
appropriately. This works, but now I find that I need to adjust the priority of certain drivers (the driver priority=N option) based
on some user configuration performed in the field.

I would prefer to not have to throw out the enum-devices system (since it works most excellently) but I do need to change the
priority of specific drivers after they have been enumerated. If I could remount the drivers in question, this would suit my
purpose, but I can’t find any docs, and in fact, the mount utility says that “Some servers may not support all the mount options,
especially with respect to remounting and enumerating.”, so I have the feeling I may be out of luck here.

Is there any other way to change the driver priority after it is running ?

Thanks

Rennie

I don’t know all the details but you can add your own enum files or
modify the existing ones. It’s not too hard to make sense of what is
already there and modify it.

Install the VesaTweak driver from
http://projects.qnxzone.com/project/shownotes.php?release_id=10

You can find the resulting installed enum file at
/etc/system/enum/oem/devg-vesatweak. I simply copied the entire
/etc/system/enum/devices/graphics enum file and modified what I needed
to to make the desired changes. This new file over-rides the same
entries in the original file without having to edit the original.

Evan Hillas <blarg@blarg.blarg> wrote:

I don’t know all the details but you can add your own enum files or
modify the existing ones. It’s not too hard to make sense of what is
already there and modify it.

If you have the 6.3 docs, take a look at “Device Enumeration” in the
Controlling How Neutrino Starts chapter of the Neutrino User’s Guide.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

You can use mount command to load a driver DLL into io-net.
example: mount -Tio-net -o speed=100,duplex=1 /lib/dll/devn-speedo.so

Note: Use the -o option to provide driver options. The -o option must be
specified before the providing the full path to the driver DLL.

Regards,

Joe

Rennie Allen <rallen@csical.com> wrote in message
news:41992B9E.6090401@csical.com

Is it possible to remount (i.e. mount -u) a network driver, so that I
could change options ?

Currently I use enum-devices (in an embedded x86 board) to automatically
find the network adapters and mount the drivers
appropriately. This works, but now I find that I need to adjust the
priority of certain drivers (the driver priority=N option) based
on some user configuration performed in the field.

I would prefer to not have to throw out the enum-devices system (since it
works most excellently) but I do need to change the
priority of specific drivers after they have been enumerated. If I could
remount the drivers in question, this would suit my
purpose, but I can’t find any docs, and in fact, the mount utility says
that “Some servers may not support all the mount options,
especially with respect to remounting and enumerating.”, so I have the
feeling I may be out of luck here.

Is there any other way to change the driver priority after it is running ?

Thanks

Rennie

Evan Hillas wrote:

I don’t know all the details but you can add your own enum files or
modify the existing ones. It’s not too hard to make sense of what is
already there and modify it.

Is it possible to do conditional processing in an enum file ? Essentially what I need to be able to do is change the priority based
on the NICs PCI index.

Rennie

Your best bet here would be to use the rc.local file to do any conditional
processing.

“Rennie Allen” <rallen@csical.com> wrote in message
news:419D239E.3060702@csical.com

Evan Hillas wrote:
I don’t know all the details but you can add your own enum files or
modify the existing ones. It’s not too hard to make sense of what is
already there and modify it.

Is it possible to do conditional processing in an enum file ? Essentially
what I need to be able to do is change the priority based
on the NICs PCI index.

Rennie

Hugh Brown wrote:

Your best bet here would be to use the rc.local file to do any conditional
processing.

“Rennie Allen” <> rallen@csical.com> > wrote in message
news:> 419D239E.3060702@csical.com> …

Evan Hillas wrote:

I don’t know all the details but you can add your own enum files or
modify the existing ones. It’s not too hard to make sense of what is
already there and modify it.

Is it possible to do conditional processing in an enum file ? Essentially

what I need to be able to do is change the priority based

on the NICs PCI index.

Thats what I was afraid of. Basically it means I have to either:

a) abandon the enum-devices.
or
b) unmount and remount drivers, after netmanager has run, and I can
determine (by ip address) what drivers need to have their priorities
modified.

I am going to try (b) initially, as this still allows auto detecting to
take place…

Rennie