devfs
[Top] [All Lists]

modprobe /dev/*

To: devfs@xxxxxxxxxxx
Subject: modprobe /dev/*
From: Russell Coker <russell@xxxxxxxxxxxx>
Date: Fri, 15 Feb 2002 00:10:17 +1100
Cc: kaos@xxxxxxxxxx
Reply-to: Russell Coker <russell@xxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
At linux.conf.au Keith and I were looking into devfs module loading issues.

We noticed that the distribution he was running (some RPM distribution) had a 
lot of scripts with code like the following:

for n in /dev/dsp* ; do
...
done

This results in `modprobe "/dev/dsp*"` being run once for the for line and 
then a second time in the body of the loop.

We discovered that a significant number of useless modprobe runs were removed 
when we added the following to devfsd.conf:
LOOKUP  \*$  IGNORE

Before the following line in the default config:
LOOKUP              .*              MODLOAD

I think that this should be part of the default config file.

-- 
http://www.coker.com.au/bonnie++/     Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/       Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/     My home page

<Prev in Thread] Current Thread [Next in Thread>