Re: [gentoo-user] coldplug replaces /etc/modules.autoload.d ?

2005-12-12 Thread Chris White
On Tuesday 13 December 2005 13:04, Grant wrote:
 I'm still trying to figure out what exactly coldplug does.  Is it a
 replacement for /etc/modules.autoload.d ?

Yes and no.  Basically what coldplug does is that it works with other services 
in order to automatically load modules given certain events.  To come up with 
a better explanation.  If my visor/ipaq modules are not loaded for my PDA, 
and I plug my palm or ipaq into my USB port, the modules will automatically 
be loaded for the devices.

 - Grant

Chris White


pgpB0sQrWPZ4l.pgp
Description: PGP signature


Re: [gentoo-user] coldplug replaces /etc/modules.autoload.d ?

2005-12-12 Thread Grant
  I'm still trying to figure out what exactly coldplug does.  Is it a
  replacement for /etc/modules.autoload.d ?

 Yes and no.  Basically what coldplug does is that it works with other services
 in order to automatically load modules given certain events.  To come up with
 a better explanation.  If my visor/ipaq modules are not loaded for my PDA,
 and I plug my palm or ipaq into my USB port, the modules will automatically
 be loaded for the devices.

  - Grant

 Chris White

You mean if you plugged the PDA in before turning on your system's
power, right?  And hotplug does the same thing if the device is
plugged in after turning on the power, right?  Hotplug won't load the
modules if the plugged-in thing was plugged in before the power was
turned on?

If coldplug is running, do I need /etc/modules.autoload.d ?

What's up with the hotplug init script?  Everyone seems to act like it
doesn't exist.

- Grant

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] coldplug replaces /etc/modules.autoload.d ?

2005-12-12 Thread Richard Fish
On 12/12/05, Grant [EMAIL PROTECTED] wrote:
 I'm still trying to figure out what exactly coldplug does.  Is it a
 replacement for /etc/modules.autoload.d ?

Coldplug scans system busses, looking for hardware, and attempting to
load any modules available for that hardware.  It does this by running
the scripts /etc/hotplug/*.rc.

So for example /etc/hotplug/pci.rc scans /sys/bus/pci/devices, looking
for devices.  For each device it finds, it looks at
/lib/modules/`uname -r`/modules.pcimap to see if there is a module
available for that device.  If there is, the script tries to load it.

So yes, there is some overlap with /etc/modules.autoload.d/, because
you can load these drivers there.  The difference is that coldplug is
limited to just hardware device drivers.  Other drivers (like security
drivers, io schedulers, or power management drivers) cannot be loaded
this way, so you have to use the modules.autoload.d/ method.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] coldplug replaces /etc/modules.autoload.d ?

2005-12-12 Thread Richard Fish
On 12/12/05, Grant [EMAIL PROTECTED] wrote:
 What's up with the hotplug init script?  Everyone seems to act like it
 doesn't exist.

That's because it doesn't do anything.  /sbin/rc (well,
/lib/rc-scripts/addons/udev-start.sh) now handles hotplug
appropriately for the kernel version.  Or at least this is true with
baselayout-1.12.0_pre11-r3 and udev-077-r3

-Richard

-- 
gentoo-user@gentoo.org mailing list